1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #9166 from smlng/pr/evtimer/us_per_ms

evtimer: use conversion macro US_PER_MS
This commit is contained in:
Koen Zandberg 2018-05-23 15:26:46 +02:00 committed by GitHub
commit 7115d0d16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ static void _del_event_from_list(evtimer_t *evtimer, evtimer_event_t *event)
static void _set_timer(xtimer_t *timer, uint32_t offset_ms)
{
uint64_t offset_us = (uint64_t)offset_ms * 1000;
uint64_t offset_us = (uint64_t)offset_ms * US_PER_MS;
DEBUG("evtimer: now=%" PRIu32 " us setting xtimer to %" PRIu32 ":%" PRIu32 " us\n",
xtimer_now_usec(), (uint32_t)(offset_us >> 32), (uint32_t)(offset_us));