Browse Source

MINIMUM_STEPPER_DIR_DELAY in LA (#15154)

Add missed MINIMUM_STEPPER_DIR_DELAY after dir change in LinearAdvance interrupt.
pull/1/head
AnHardt 5 years ago
committed by Scott Lahteine
parent
commit
89a2161cac
  1. 5
      Marlin/src/module/stepper.cpp

5
Marlin/src/module/stepper.cpp

@ -1893,6 +1893,11 @@ uint32_t Stepper::stepper_block_phase_isr() {
REV_E_DIR(stepper_extruder);
#endif
// A small delay may be needed after changing direction
#if MINIMUM_STEPPER_DIR_DELAY > 0
DELAY_NS(MINIMUM_STEPPER_DIR_DELAY);
#endif
// Get the timer count and estimate the end of the pulse
hal_timer_t pulse_end = HAL_timer_get_count(PULSE_TIMER_NUM) + hal_timer_t(MIN_PULSE_TICKS);

Loading…
Cancel
Save