I have started a simple ctl_task sample where I have added a LED_task to toggle a LED. When I have toggled the LED, I have used the code "ctl_timeout_wait(ctl_get_current_time()+100);" to wait before toggling again. When the wait function is called, the code ends up in the ctl_handle_error function with e = CTL_ERROR_NO_TASKS_TO_RUN. Is the main_task created with ctl_task_init not surposed to be some sort of idle_task to run when others aren't? Or have i missed a detail in the ctl_task system?
Please sign in to leave a comment.