From e927941c064890cf05e10a5e31c869fcc93084ab Mon Sep 17 00:00:00 2001 From: Tannoo Date: Sat, 8 Jul 2017 08:44:50 -0600 Subject: [PATCH] Bugfix (#7265) Fix compile error when UBL is enabled but there is no LCD Panel. --- Marlin/stepper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 14b1ebc7d..9493cedf1 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -62,7 +62,7 @@ Stepper stepper; // Singleton // public: -#if ENABLED(AUTO_BED_LEVELING_UBL) +#if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL) extern bool ubl_lcd_map_control; #endif @@ -1285,7 +1285,7 @@ void Stepper::finish_and_disable() { } void Stepper::quick_stop() { - #if ENABLED(AUTO_BED_LEVELING_UBL) + #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL) if (!ubl_lcd_map_control) cleaning_buffer_counter = 5000; #else