From 65519263f4d2f654296c10f380a4a3258a0b0570 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 23 Feb 2018 09:13:34 -0600 Subject: [PATCH] Fix broken LEVEL_BED_CORNERS Fix #8805 --- Marlin/src/Marlin.cpp | 2 +- Marlin/src/gcode/control/M17_M18_M84.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/Marlin.cpp b/Marlin/src/Marlin.cpp index ddfb0232d9..fd2fb26078 100644 --- a/Marlin/src/Marlin.cpp +++ b/Marlin/src/Marlin.cpp @@ -360,7 +360,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { disable_e_steppers(); #endif #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL) // Only needed with an LCD - ubl.lcd_map_control = defer_return_to_status = false; + if (ubl.lcd_map_control) ubl.lcd_map_control = defer_return_to_status = false; #endif } diff --git a/Marlin/src/gcode/control/M17_M18_M84.cpp b/Marlin/src/gcode/control/M17_M18_M84.cpp index 2049aebae7..34da0b1049 100644 --- a/Marlin/src/gcode/control/M17_M18_M84.cpp +++ b/Marlin/src/gcode/control/M17_M18_M84.cpp @@ -60,7 +60,7 @@ void GcodeSuite::M18_M84() { } #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL) // Only needed with an LCD - ubl.lcd_map_control = defer_return_to_status = false; + if (ubl.lcd_map_control) ubl.lcd_map_control = defer_return_to_status = false; #endif } }