|
@@ -179,6 +179,7 @@
|
179
|
179
|
* nozzle in a problem area and doing a G29 P4 R command.
|
180
|
180
|
*/
|
181
|
181
|
void gcode_G26() {
|
|
182
|
+ SERIAL_ECHOLNPGM("G26 command started. Waiting for heater(s).");
|
182
|
183
|
float tmp, start_angle, end_angle;
|
183
|
184
|
int i, xi, yi;
|
184
|
185
|
mesh_index_pair location;
|
|
@@ -766,6 +767,7 @@
|
766
|
767
|
* wait for them to get up to temperature.
|
767
|
768
|
*/
|
768
|
769
|
bool turn_on_heaters() {
|
|
770
|
+ millis_t next;
|
769
|
771
|
#if HAS_TEMP_BED
|
770
|
772
|
#if ENABLED(ULTRA_LCD)
|
771
|
773
|
if (bed_temp > 25) {
|
|
@@ -774,8 +776,13 @@
|
774
|
776
|
#endif
|
775
|
777
|
ubl.has_control_of_lcd_panel = true;
|
776
|
778
|
thermalManager.setTargetBed(bed_temp);
|
|
779
|
+ next = millis() + 5000UL;
|
777
|
780
|
while (abs(thermalManager.degBed() - bed_temp) > 3) {
|
778
|
781
|
if (ubl_lcd_clicked()) return exit_from_g26();
|
|
782
|
+ if (PENDING(millis(), next)) {
|
|
783
|
+ next = millis() + 5000UL;
|
|
784
|
+ print_heaterstates();
|
|
785
|
+ }
|
779
|
786
|
idle();
|
780
|
787
|
}
|
781
|
788
|
#if ENABLED(ULTRA_LCD)
|
|
@@ -789,6 +796,10 @@
|
789
|
796
|
thermalManager.setTargetHotend(hotend_temp, 0);
|
790
|
797
|
while (abs(thermalManager.degHotend(0) - hotend_temp) > 3) {
|
791
|
798
|
if (ubl_lcd_clicked()) return exit_from_g26();
|
|
799
|
+ if (PENDING(millis(), next)) {
|
|
800
|
+ next = millis() + 5000UL;
|
|
801
|
+ print_heaterstates();
|
|
802
|
+ }
|
792
|
803
|
idle();
|
793
|
804
|
}
|
794
|
805
|
|