From a0556afb8953ae458fb0fe7bcc68bde851f0e630 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Fri, 30 Dec 2011 13:25:05 -0700 Subject: [PATCH] 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. --- task.c | 7 ------- 1 file changed, 7 deletions(-) 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; } -- 2.39.2