refactor: k_work_queue API updates.
This commit is contained in:
parent
79ab60dfe5
commit
2c5d5fde51
7 changed files with 23 additions and 20 deletions
|
|
@ -389,7 +389,7 @@ static void update_timeout_task() {
|
|||
k_work_cancel_delayable(&timeout_task);
|
||||
return;
|
||||
}
|
||||
if (k_work_schedule(&timeout_task, K_MSEC(first_timeout - k_uptime_get())) == 0) {
|
||||
if (k_work_schedule(&timeout_task, K_MSEC(first_timeout - k_uptime_get())) >= 0) {
|
||||
timeout_task_timeout_at = first_timeout;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue