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

This commit is contained in:
Jason Smith 2020-07-22 20:17:33 -07:00 committed by GitHub
parent 0b46fcdce6
commit f9b1da7beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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