From 0817675f5e02a4f9facf3ad8f8a8e31d967c2c51 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Sat, 14 Dec 2013 00:12:47 +0100 Subject: [PATCH] fix native hwtimer unsetting reverts bug introduced by 2bfb062 --- cpu/native/hwtimer_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/native/hwtimer_cpu.c b/cpu/native/hwtimer_cpu.c index 1c16f092bd..7a1532a2bd 100644 --- a/cpu/native/hwtimer_cpu.c +++ b/cpu/native/hwtimer_cpu.c @@ -136,10 +136,10 @@ void hwtimer_isr_timer() return; } - if (native_hwtimer_irq[next_timer] == 1) { + if (native_hwtimer_isset[next_timer] == 1) { + native_hwtimer_isset[next_timer] = 0; DEBUG("hwtimer_isr_timer(): calling hwtimer.int_handler(%i)\n", next_timer); int_handler(next_timer); - native_hwtimer_isset[next_timer] = 0; } else { DEBUG("hwtimer_isr_timer(): this should not have happened");