Browse Source

Minor cleanup of set_bed_leveling_enabled

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

+ 2
- 2
Marlin/Marlin_main.cpp View File

2225
     #elif HAS_ABL
2225
     #elif HAS_ABL
2226
 
2226
 
2227
       if (enable != planner.abl_enabled) {
2227
       if (enable != planner.abl_enabled) {
2228
-        planner.abl_enabled = !planner.abl_enabled;
2229
-        if (!planner.abl_enabled)
2228
+        planner.abl_enabled = enable;
2229
+        if (!enable)
2230
           set_current_from_steppers_for_axis(
2230
           set_current_from_steppers_for_axis(
2231
             #if ABL_PLANAR
2231
             #if ABL_PLANAR
2232
               ALL_AXES
2232
               ALL_AXES

Loading…
Cancel
Save