Browse Source

Use wait_for_bed with WAIT_FOR_BED_HEATER

Addressing #12517
pull/1/head
Scott Lahteine 6 years ago
parent
commit
caca3c8503
  1. 2
      Marlin/src/module/motion.cpp
  2. 2
      Marlin/src/module/probe.cpp

2
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()) { if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) {
serialprintPGM(msg_wait_for_bed_heating); serialprintPGM(msg_wait_for_bed_heating);
LCD_MESSAGEPGM(MSG_BED_HEATING); LCD_MESSAGEPGM(MSG_BED_HEATING);
while (thermalManager.isHeatingBed()) safe_delay(200); thermalManager.wait_for_bed();
ui.reset_status(); ui.reset_status();
} }
#endif #endif

2
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()) { if (thermalManager.isHeatingBed()) {
serialprintPGM(msg_wait_for_bed_heating); serialprintPGM(msg_wait_for_bed_heating);
LCD_MESSAGEPGM(MSG_BED_HEATING); LCD_MESSAGEPGM(MSG_BED_HEATING);
while (thermalManager.isHeatingBed()) safe_delay(200); thermalManager.wait_for_bed();
ui.reset_status(); ui.reset_status();
} }
#endif #endif

Loading…
Cancel
Save