Skip to content
Snippets Groups Projects
Commit 120a46c7 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()

Used _xtimer_set64 previously, which expects ticks instead of us.
That broke on non-1us xtimer ticks (e.g., hifive1 with 32kHZ).
parent 654fd4fb
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
start = xtimer_now_usec64();
if (timeout > 0) {
uint64_t u_timeout = (timeout * US_PER_MS);
_xtimer_set64(&timer, (uint32_t)u_timeout, (uint32_t)(u_timeout >> 32));
xtimer_set64(&timer, u_timeout);
}
mbox_get(&mbox->mbox, &m);
stop = xtimer_now_usec64();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment