Browse Source

Linear Advance: Only change E DIR when needed (#18744)

vanilla_fb_2.0.x
Jason Smith 4 years ago
committed by GitHub
parent
commit
f9b1da7beb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Marlin/src/module/stepper.cpp

8
Marlin/src/module/stepper.cpp

@ -2277,14 +2277,14 @@ uint32_t Stepper::block_phase_isr() {
#if ENABLED(MIXING_EXTRUDER)
// We don't know which steppers will be stepped because LA loop follows,
// with potentially multiple steps. Set all.
if (LA_steps >= 0)
if (LA_steps > 0)
MIXER_STEPPER_LOOP(j) NORM_E_DIR(j);
else
else if (LA_steps < 0)
MIXER_STEPPER_LOOP(j) REV_E_DIR(j);
#else
if (LA_steps >= 0)
if (LA_steps > 0)
NORM_E_DIR(stepper_extruder);
else
else if (LA_steps < 0)
REV_E_DIR(stepper_extruder);
#endif

Loading…
Cancel
Save