mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3147 from gebart/pr/vtimer-set-relative
vtimer: use hwtimer_set instead of hwtimer_set_absolute
This commit is contained in:
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…
Reference in New Issue
Block a user