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

vtimer: use hwtimer_set instead of hwtimer_set_absolute
dev/timer
Kaspar Schleiser 8 years ago
commit 3f73e87f59

@ -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;
}

Loading…
Cancel
Save