Skip to content

Commit

Permalink
Linear Advance: Only change E DIR when needed (MarlinFirmware#18744)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith authored and vgadreau committed Dec 9, 2020
1 parent 4ed1979 commit e2df165
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e2df165

Please sign in to comment.