ensure step timer doesn't fire by itself after a period of inactivity
This commit is contained in:
parent
69f30f0691
commit
d91f30eda1
1
timer.c
1
timer.c
|
|
@ -57,6 +57,7 @@ void timer1_compa_isr() {
|
||||||
ISR(TIMER1_COMPA_vect) {
|
ISR(TIMER1_COMPA_vect) {
|
||||||
// Check if this is a real step, or just a next_step_time "overflow"
|
// Check if this is a real step, or just a next_step_time "overflow"
|
||||||
if (next_step_time < 65536) {
|
if (next_step_time < 65536) {
|
||||||
|
next_step_time = 0;
|
||||||
// step!
|
// step!
|
||||||
timer1_compa_isr();
|
timer1_compa_isr();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue