maksimdrachov/zephyr-rtos-tutorial

k_sleep parameter in the latest Zephyr API

dinayuil opened this issue · 0 comments

Hi,
When I try to build the code in the thread start exercise, the k_sleep gave error. I found that the parameter k_sleep takes should be in type k_timeout_t (https://docs.zephyrproject.org/apidoc/latest/group__thread__apis.html#ga48d4b041790454da4d68ac8711f29657). And the code can be changed to k_sleep(K_MSEC(500)), or change the define of SLEEPTIME.