timer.c: don't reset next_step_time when doing a step.

Doing so adds most of the interrupt execution time to the
step time, see line 126 of the same file:

    if (next_step_time == 0) {
      // new move, take current time as start value
      step_start = TCNT1;
    }
This commit is contained in:
Markus Hitter 2011-03-14 17:27:40 +01:00
parent 0ec0d360be
commit 851a91306a
1 changed files with 0 additions and 1 deletions

View File

@ -69,7 +69,6 @@ void timer1_compa_isr() {
ISR(TIMER1_COMPA_vect) {
// Check if this is a real step, or just a next_step_time "overflow"
if (next_step_time < 65536) {
next_step_time = 0;
// step!
timer1_compa_isr();
return;