瀏覽代碼

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

Jason Smith 3 年之前
父節點
當前提交
f9b1da7beb
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      Marlin/src/module/stepper.cpp

+ 4
- 4
Marlin/src/module/stepper.cpp 查看文件

@@ -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…
取消
儲存