Bläddra i källkod

Use wait_for_bed with WAIT_FOR_BED_HEATER

Addressing #12517
Scott Lahteine 6 år sedan
förälder
incheckning
caca3c8503
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1
    1
      Marlin/src/module/motion.cpp
  2. 1
    1
      Marlin/src/module/probe.cpp

+ 1
- 1
Marlin/src/module/motion.cpp Visa fil

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

+ 1
- 1
Marlin/src/module/probe.cpp Visa fil

526
     if (thermalManager.isHeatingBed()) {
526
     if (thermalManager.isHeatingBed()) {
527
       serialprintPGM(msg_wait_for_bed_heating);
527
       serialprintPGM(msg_wait_for_bed_heating);
528
       LCD_MESSAGEPGM(MSG_BED_HEATING);
528
       LCD_MESSAGEPGM(MSG_BED_HEATING);
529
-      while (thermalManager.isHeatingBed()) safe_delay(200);
529
+      thermalManager.wait_for_bed();
530
       ui.reset_status();
530
       ui.reset_status();
531
     }
531
     }
532
   #endif
532
   #endif

Laddar…
Avbryt
Spara