Skip to content
Snippets Groups Projects
Commit 3f73e87f authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

Merge pull request #3147 from gebart/pr/vtimer-set-relative

vtimer: use hwtimer_set instead of hwtimer_set_absolute
parents 10283af5 29f4a1a2
No related branches found
No related tags found
No related merge requests found
......@@ -142,8 +142,8 @@ static int update_shortterm(void)
}
DEBUG("update_shortterm: Set hwtimer to %" PRIu32 " (now=%lu)\n", next, now);
uint32_t next_ticks = now_ticks + HWTIMER_TICKS(next - now);
hwtimer_id = hwtimer_set_absolute(next_ticks, vtimer_callback, NULL);
unsigned long offset_ticks = (unsigned long)HWTIMER_TICKS(next - now);
hwtimer_id = hwtimer_set(offset_ticks, vtimer_callback, NULL);
return 0;
}
......
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