From d91f30eda166156e49713fcaa4dc1e68143d46f3 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Thu, 10 Feb 2011 19:57:16 +1100 Subject: [PATCH] ensure step timer doesn't fire by itself after a period of inactivity --- timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/timer.c b/timer.c index 636593c..6ec0815 100644 --- a/timer.c +++ b/timer.c @@ -57,6 +57,7 @@ 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;