We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d317140 commit e22ee46Copy full SHA for e22ee46
sdk/userspace/include/utils/lcd.h
@@ -46,8 +46,8 @@ extern "C" {
46
static inline int msleep(uint64_t ms)
47
{
48
struct timespec sleep_time = {
49
- .tv_sec = (long int)(ms / MS_PER_SECOND),
50
- .tv_nsec = (long int)((ms % MS_PER_SECOND) * NS_PER_MS)
+ .tv_sec = (time_t)(ms / MS_PER_SECOND),
+ .tv_nsec = (long)((ms % MS_PER_SECOND) * NS_PER_MS)
51
};
52
53
return clock_nanosleep(CLOCK_MONOTONIC, 0, &sleep_time, NULL);
0 commit comments