No pulse delay on last e_steps in advance isr

2.0.x
Scott Lahteine 7 years ago
parent 881529a401
commit 07ae23fe14

@ -851,9 +851,9 @@ void Stepper::isr() {
// For minimum pulse time wait before looping
#if EXTRA_CYCLES_E > 20
while (EXTRA_CYCLES_E > (hal_timer_t)(HAL_timer_get_count(PULSE_TIMER_NUM) - pulse_start) * (PULSE_TIMER_PRESCALE)) { /* nada */ }
if (e_steps) while (EXTRA_CYCLES_E > (hal_timer_t)(HAL_timer_get_count(PULSE_TIMER_NUM) - pulse_start) * (PULSE_TIMER_PRESCALE)) { /* nada */ }
#elif EXTRA_CYCLES_E > 0
DELAY_NOPS(EXTRA_CYCLES_E);
if (e_steps) DELAY_NOPS(EXTRA_CYCLES_E);
#endif
} // e_steps

Loading…
Cancel
Save