Linear Advance: Only change E DIR when needed (#18744)
This commit is contained in:
parent
0b46fcdce6
commit
f9b1da7beb
@ -2277,14 +2277,14 @@ uint32_t Stepper::block_phase_isr() {
|
|||||||
#if ENABLED(MIXING_EXTRUDER)
|
#if ENABLED(MIXING_EXTRUDER)
|
||||||
// We don't know which steppers will be stepped because LA loop follows,
|
// We don't know which steppers will be stepped because LA loop follows,
|
||||||
// with potentially multiple steps. Set all.
|
// with potentially multiple steps. Set all.
|
||||||
if (LA_steps >= 0)
|
if (LA_steps > 0)
|
||||||
MIXER_STEPPER_LOOP(j) NORM_E_DIR(j);
|
MIXER_STEPPER_LOOP(j) NORM_E_DIR(j);
|
||||||
else
|
else if (LA_steps < 0)
|
||||||
MIXER_STEPPER_LOOP(j) REV_E_DIR(j);
|
MIXER_STEPPER_LOOP(j) REV_E_DIR(j);
|
||||||
#else
|
#else
|
||||||
if (LA_steps >= 0)
|
if (LA_steps > 0)
|
||||||
NORM_E_DIR(stepper_extruder);
|
NORM_E_DIR(stepper_extruder);
|
||||||
else
|
else if (LA_steps < 0)
|
||||||
REV_E_DIR(stepper_extruder);
|
REV_E_DIR(stepper_extruder);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user