From 669fe74096458c344eed83b9c4457009fef56a83 Mon Sep 17 00:00:00 2001 From: ellensp Date: Thu, 9 Jan 2020 23:51:41 +1300 Subject: [PATCH] Fix compile error w/out LCD (#16502) --- Marlin/src/module/motion.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index 484d6a077..395d7e9b3 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1253,9 +1253,13 @@ void do_homing_move(const AxisEnum axis, const float distance, const feedRate_t // Wait for bed to heat back up between probing points if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) { serialprintPGM(msg_wait_for_bed_heating); - LCD_MESSAGEPGM(MSG_BED_HEATING); + #if HAS_DISPLAY + LCD_MESSAGEPGM(MSG_BED_HEATING); + #endif thermalManager.wait_for_bed(); - ui.reset_status(); + #if HAS_DISPLAY + ui.reset_status(); + #endif } #endif