Skip to content
Snippets Groups Projects
Unverified Commit bd77c1b1 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #11049 from kaspar030/fix_lwip_mbox_fetch_timeout

pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()
parents 92b3558b 120a46c7
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) ...@@ -146,7 +146,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
start = xtimer_now_usec64(); start = xtimer_now_usec64();
if (timeout > 0) { if (timeout > 0) {
uint64_t u_timeout = (timeout * US_PER_MS); 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); mbox_get(&mbox->mbox, &m);
stop = xtimer_now_usec64(); stop = xtimer_now_usec64();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment