From 29f4a1a2111caa21d70242ed76ac1a6a1e4d5e23 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Tue, 2 Jun 2015 07:41:41 +0200 Subject: [PATCH] vtimer: use hwtimer_set instead of hwtimer_set_absolute --- sys/vtimer/vtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vtimer/vtimer.c b/sys/vtimer/vtimer.c index 3593a6daf7..b7e294d8db 100644 --- a/sys/vtimer/vtimer.c +++ b/sys/vtimer/vtimer.c @@ -136,8 +136,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; }