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:
Johan Hedberg 2020-04-01 16:08:32 +03:00 committed by Johan Hedberg
commit 0c4b87dc9f

View file

@ -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,