From caca3c850324308645ff216efdd223b0c044a3c9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 23 Nov 2018 20:39:12 -0600 Subject: [PATCH] Use wait_for_bed with WAIT_FOR_BED_HEATER Addressing #12517 --- Marlin/src/module/motion.cpp | 2 +- Marlin/src/module/probe.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index ec888f12b5..dab6e816bf 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1120,7 +1120,7 @@ void do_homing_move(const AxisEnum axis, const float distance, const float fr_mm if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) { serialprintPGM(msg_wait_for_bed_heating); LCD_MESSAGEPGM(MSG_BED_HEATING); - while (thermalManager.isHeatingBed()) safe_delay(200); + thermalManager.wait_for_bed(); ui.reset_status(); } #endif diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index 6d535eeef0..562914a858 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -526,7 +526,7 @@ static bool do_probe_move(const float z, const float fr_mm_s) { if (thermalManager.isHeatingBed()) { serialprintPGM(msg_wait_for_bed_heating); LCD_MESSAGEPGM(MSG_BED_HEATING); - while (thermalManager.isHeatingBed()) safe_delay(200); + thermalManager.wait_for_bed(); ui.reset_status(); } #endif