mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ztimer: initialized un-initialized timer objects
This commit is contained in:
parent
5aefb8d5dc
commit
a81c5a527e
@ -110,7 +110,7 @@ int ztimer_msg_receive_timeout(ztimer_clock_t *clock, msg_t *msg,
|
||||
return 1;
|
||||
}
|
||||
|
||||
ztimer_t t;
|
||||
ztimer_t t = { .base = { .next = NULL } };
|
||||
msg_t m = { .type = MSG_ZTIMER, .content.ptr = &m };
|
||||
|
||||
ztimer_set_msg(clock, &t, timeout, &m, thread_getpid());
|
||||
|
Loading…
Reference in New Issue
Block a user