ensure step timer doesn't fire by itself after a period of inactivity

This commit is contained in:
Michael Moon 2011-02-10 19:57:16 +11:00
parent 69f30f0691
commit d91f30eda1
1 changed files with 1 additions and 0 deletions

View File

@ -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;