Skip to content

Commit

Permalink
Remove timer reset, as this doesn't play well. See
Browse files Browse the repository at this point in the history
  • Loading branch information
Traumflug committed Sep 25, 2010
1 parent 4679b45 commit 64683e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64683e6

Please sign in to comment.