From: AceVest Date: Mon, 18 Jun 2018 15:25:57 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=f231068aa9bb0a891004a504cb8df10629585dc9;p=acecode.git ... --- diff --git a/arduino/hardware/ace/avr/cores/avr/kernel.cpp b/arduino/hardware/ace/avr/cores/avr/kernel.cpp index 95495ee..0874436 100644 --- a/arduino/hardware/ace/avr/cores/avr/kernel.cpp +++ b/arduino/hardware/ace/avr/cores/avr/kernel.cpp @@ -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(); }