Browse Source

Use wait_for_bed with WAIT_FOR_BED_HEATER

Addressing #12517
Scott Lahteine 6 years ago
parent
commit
caca3c8503
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/module/motion.cpp
  2. 1
    1
      Marlin/src/module/probe.cpp

+ 1
- 1
Marlin/src/module/motion.cpp View File

@@ -1120,7 +1120,7 @@ void do_homing_move(const AxisEnum axis, const float distance, const float fr_mm
1120 1120
     if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) {
1121 1121
       serialprintPGM(msg_wait_for_bed_heating);
1122 1122
       LCD_MESSAGEPGM(MSG_BED_HEATING);
1123
-      while (thermalManager.isHeatingBed()) safe_delay(200);
1123
+      thermalManager.wait_for_bed();
1124 1124
       ui.reset_status();
1125 1125
     }
1126 1126
   #endif

+ 1
- 1
Marlin/src/module/probe.cpp View File

@@ -526,7 +526,7 @@ static bool do_probe_move(const float z, const float fr_mm_s) {
526 526
     if (thermalManager.isHeatingBed()) {
527 527
       serialprintPGM(msg_wait_for_bed_heating);
528 528
       LCD_MESSAGEPGM(MSG_BED_HEATING);
529
-      while (thermalManager.isHeatingBed()) safe_delay(200);
529
+      thermalManager.wait_for_bed();
530 530
       ui.reset_status();
531 531
     }
532 532
   #endif

Loading…
Cancel
Save