Skip to content
Snippets Groups Projects
Commit 29f4a1a2 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

vtimer: use hwtimer_set instead of hwtimer_set_absolute

parent 7a9f6f97
Branches
No related tags found
No related merge requests found
...@@ -136,8 +136,8 @@ static int update_shortterm(void) ...@@ -136,8 +136,8 @@ static int update_shortterm(void)
} }
DEBUG("update_shortterm: Set hwtimer to %" PRIu32 " (now=%lu)\n", next, now); DEBUG("update_shortterm: Set hwtimer to %" PRIu32 " (now=%lu)\n", next, now);
uint32_t next_ticks = now_ticks + HWTIMER_TICKS(next - now); unsigned long offset_ticks = (unsigned long)HWTIMER_TICKS(next - now);
hwtimer_id = hwtimer_set_absolute(next_ticks, vtimer_callback, NULL); hwtimer_id = hwtimer_set(offset_ticks, vtimer_callback, NULL);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment