1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #11049 from kaspar030/fix_lwip_mbox_fetch_timeout

pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()
This commit is contained in:
Kaspar Schleiser 2019-02-21 14:19:09 +01:00 committed by GitHub
commit bd77c1b1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();