Browse Source

No pulse delay on last e_steps in advance isr

pull/1/head
Scott Lahteine 7 years ago
parent
commit
07ae23fe14
  1. 4
      Marlin/src/module/stepper.cpp

4
Marlin/src/module/stepper.cpp

@ -851,9 +851,9 @@ void Stepper::isr() {
// For minimum pulse time wait before looping // For minimum pulse time wait before looping
#if EXTRA_CYCLES_E > 20 #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 #elif EXTRA_CYCLES_E > 0
DELAY_NOPS(EXTRA_CYCLES_E); if (e_steps) DELAY_NOPS(EXTRA_CYCLES_E);
#endif #endif
} // e_steps } // e_steps

Loading…
Cancel
Save