doc: k_sleep does not take raw integers

Using k_msleep seems easier than k_sleep(K_MSEC(1000));

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
Reto Schneider 2022-05-09 19:01:33 +02:00 committed by Anas Nashif
parent dbbe80226d
commit 0063df2c54

View file

@ -274,7 +274,7 @@ up from where it was before restart.
printk("foo: %d\n", foo_val);
k_sleep(1000);
k_msleep(1000);
sys_reboot(SYS_REBOOT_COLD);
}