Commit 7e7b4ad1 authored by Carles Cufi's avatar Carles Cufi Committed by Carles Cufí
Browse files

zephyr: boot_serial: Use K_MSEC() with k_sleep

k_sleep() requires explicit conversion of the unit since it takes an
opaque type starting with:
https://github.com/zephyrproject-rtos/zephyr/pull/23382

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent aa7c021e
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/boot_serial/src/boot_serial.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -404,7 +404,7 @@ bs_reset(char *buf, int len)
    bs_empty_rsp(buf, len);

#ifdef __ZEPHYR__
    k_sleep(250);
    k_sleep(K_MSEC(250));
    sys_reboot(SYS_REBOOT_COLD);
#else
    os_cputime_delay_usecs(250000);