No pulse delay on last e_steps in advance isr

This commit is contained in:
Scott Lahteine 2018-03-04 15:06:22 -06:00
parent 881529a401
commit 07ae23fe14

View File

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