Skip to content

Commit 551e096

Browse files
HeatCrabjserv
authored andcommitted
Fix kernel panic in semaphore test
Discovered that the semaphore test task caused a "no ready tasks" kernel panic due to 'mo_task_delay(10000)' keeping the task asleep too long. Replaced it with mo_task_wfi() in semaphore_test_task to keep the task runnable, ensuring the scheduler always has a task to run and preventing the panic.
1 parent 43cca97 commit 551e096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void semaphore_test_task(void)
206206

207207
/* Test complete - go into low-activity mode */
208208
while (1)
209-
mo_task_delay(10000); /* Sleep for long periods */
209+
mo_task_wfi();
210210
}
211211

212212
/* Example of how to integrate into app_main */

0 commit comments

Comments
 (0)