Skip to content
Snippets Groups Projects
Commit e97882dc authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

evtimer: use conversion macro US_PER_MS

parent 1df01a48
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
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