From 3325350162a54282e8fb5b70852612355464033b Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 23 Sep 2010 11:05:08 +0200 Subject: [PATCH] * swtimer: fix underflow bug --- sys/swtimer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/swtimer.c b/sys/swtimer.c index 0faddf39bb..0d87b97581 100644 --- a/sys/swtimer.c +++ b/sys/swtimer.c @@ -90,11 +90,6 @@ static void swtimer_update_values() { swtime_t offset = swtimer_next_alarm_absolute - now; hwtimer_ticks_left = HWTIMER_TICKS(offset); - if ( offset > swtimer_next_alarm_absolute ) { - DEBUG("swtimer_update_values: underflow corrected.\n"); - hwtimer_ticks_left = 0; - } else { - } DEBUG("swtimer_update_values abs: %lu offset: %lu hwtimer_ticks_left: %lu, now=%lu, hwtimer_now=%lu\n", swtimer_next_alarm_absolute, offset, hwtimer_ticks_left, swtimer_now(), hwtimer_now()); }