From: R. Steve McKown Date: Fri, 30 Dec 2011 20:25:05 +0000 (-0700) Subject: Remove unusable comment X-Git-Tag: 1.1~7 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=a0556afb8953ae458fb0fe7bcc68bde851f0e630 Remove unusable comment Can never sleep in get_task() unless the system can wake up at the next event. In the case of buttons, this works fine. In the case of timers, the only possible wake-up is when a timer overflows. This means a new timer module. --- diff --git a/task.c b/task.c index d704d60..b2197f9 100644 --- a/task.c +++ b/task.c @@ -46,13 +46,6 @@ task_id_t task_get(unsigned char block) _task_bitno = 0; } } -#if 0 - /* Something like this when we have a crystal. But watch for the race of - * going to sleep when a task is posted by an ISR. - */ - else - SLEEP(); -#endif } while (t == -1 && block == 1); return t; }