mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-02 13:27:21 +00:00
mesh: glue: Add sanity check in k_delayed_work_submit
X-Original-Commit: a14eec88975af4679cd523a5aced6a5510dcfceb
This commit is contained in:
@@ -340,7 +340,9 @@ k_delayed_work_submit(struct k_delayed_work *w, uint32_t ms)
|
|||||||
{
|
{
|
||||||
uint32_t ticks;
|
uint32_t ticks;
|
||||||
|
|
||||||
os_time_ms_to_ticks(ms, &ticks);
|
if (os_time_ms_to_ticks(ms, &ticks) != 0) {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
os_callout_reset(&w->work, ticks);
|
os_callout_reset(&w->work, ticks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user