Nucleus
Barry Private TaskQueue structure 843a520 (3 years, 3 months ago)
diff --git a/task/scheduler.c b/task/scheduler.c
index cad926d..06012ae 100644
--- a/task/scheduler.c
+++ b/task/scheduler.c
@@ -46,7 +46,7 @@ highest_priority_queue(void)
{
enum Priority p;
for (p = PRIORITY_COUNT - 1; p > 0; p--) {
- if (readyQueue[p]->start)
+ if (tasks_in_queue(readyQueue[p]))
return readyQueue[p];
}
return NULL;