net: openthread: Fix timeout passed to k_sleep()
k_sleep() now takes a k_timeout_t so an integer value needs to be wrapped through the appropriate macro, in this case K_SECONDS(). Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
b3f39226ec
commit
0c4b87dc9f
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ otError otPlatUartEnable(void)
|
|||
}
|
||||
|
||||
LOG_INF("Wait for host to settle");
|
||||
k_sleep(MSEC_PER_SEC * 1);
|
||||
k_sleep(K_SECONDS(1));
|
||||
|
||||
ret = uart_line_ctrl_get(ot_uart.dev,
|
||||
UART_LINE_CTRL_BAUD_RATE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue