]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Remove unusable comment
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 30 Dec 2011 20:25:05 +0000 (13:25 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 31 Dec 2011 19:47:13 +0000 (12:47 -0700)
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

diff --git a/task.c b/task.c
index d704d60bd850d6042c95641b5eaeb897af8d8dab..b2197f936908fa12b5a42844678124eda1501e8d 100644 (file)
--- 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;
 }