Browse Source

No need for auto_bed_leveling_was_enabled

Scott Lahteine 8 years ago
parent
commit
903b8bb60c
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/Marlin_main.cpp

+ 1
- 2
Marlin/Marlin_main.cpp View File

@@ -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…
Cancel
Save