瀏覽代碼

No need for auto_bed_leveling_was_enabled

Scott Lahteine 8 年之前
父節點
當前提交
903b8bb60c
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      Marlin/Marlin_main.cpp

+ 1
- 2
Marlin/Marlin_main.cpp 查看文件

@@ -3519,8 +3519,7 @@ inline void gcode_G28() {
3519 3519
     stepper.synchronize();
3520 3520
 
3521 3521
     // Disable auto bed leveling during G29
3522
-    bool auto_bed_leveling_was_enabled = planner.abl_enabled,
3523
-         abl_should_reenable = auto_bed_leveling_was_enabled;
3522
+    bool abl_should_reenable = planner.abl_enabled;
3524 3523
 
3525 3524
     planner.abl_enabled = false;
3526 3525
 

Loading…
取消
儲存