modem: gsm: correct timeout parameter to k_delayed_work_submit
The parameter is a k_timeout_t, not an integer in milliseconds. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
1dc095c949
commit
df106a1708
1 changed files with 3 additions and 2 deletions
|
@ -524,7 +524,8 @@ static void gsm_configure(struct k_work *work)
|
|||
if (ret < 0) {
|
||||
LOG_DBG("modem not ready %d", ret);
|
||||
|
||||
(void)k_delayed_work_submit(&gsm->gsm_configure_work, 0);
|
||||
(void)k_delayed_work_submit(&gsm->gsm_configure_work,
|
||||
K_NO_WAIT);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -550,7 +551,7 @@ static void gsm_configure(struct k_work *work)
|
|||
mux_setup);
|
||||
|
||||
(void)k_delayed_work_submit(&gsm->gsm_configure_work,
|
||||
0);
|
||||
K_NO_WAIT);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue