From 64683e6b6a9df5bdbe6897c31641b7b1011b9dc8 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sat, 25 Sep 2010 12:02:57 +0200 Subject: [PATCH] Remove timer reset, as this doesn't play well. See http://github.com/triffid/FiveD_on_Arduino/issues#issue/2/comment/428863 . --- timer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/timer.c b/timer.c index 6cafbcf..b04be2a 100644 --- a/timer.c +++ b/timer.c @@ -104,7 +104,6 @@ void setTimer(uint32_t delay) // the result is the timer counts up to the appropriate time and then fires an interrupt. setTimerResolution(0); // stop timer - TCNT1 = 0; // reset timer GTCCR = MASK(PSRSYNC); // reset prescaler - affects timer 0 too but since it's doing PWM, it's not using the prescaler setTimerCeiling(getTimerCeiling(delay)); // set timeout