Browse Source

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

Jason Smith 3 years ago
parent
commit
f9b1da7beb
No account linked to committer's email address
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/module/stepper.cpp

+ 4
- 4
Marlin/src/module/stepper.cpp View File

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

Loading…
Cancel
Save