]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authorAceVest <zhaoyanbai@126.com>
Mon, 18 Jun 2018 15:25:57 +0000 (23:25 +0800)
committerAceVest <zhaoyanbai@126.com>
Mon, 18 Jun 2018 15:25:57 +0000 (23:25 +0800)
arduino/hardware/ace/avr/cores/avr/kernel.cpp

index 95495ee5a201bae1c9034739432caf8a04018ff0..08744363df96c168bb84961e1a9a542343abe9b9 100644 (file)
@@ -47,10 +47,8 @@ void idle_task() {
 
 void task_delay(uint16_t ticks)
 {
-    cli();
     current_task->state = TASK_STATE_SLEEP;
     current_task->delay_ticks = ticks;
-    sei();
     task_scheduler();
 }