1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

No need for auto_bed_leveling_was_enabled

This commit is contained in:
Scott Lahteine 2016-09-23 16:38:22 -05:00 committed by GitHub
parent d0796fc54c
commit 903b8bb60c

View File

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