Browse Source

Add startup notice & update host temperatures while waiting

Right now G26 doesn't send a notice to the host that it's running.  It's
not until the heaters are at temperature that you know for sure if it's
running or not.

Added host temperature prints so that someone watching the host
interface will see the temperatures change during the warm up period.
Updates are sent every 5 seconds.
Bob-the-Kuhn 8 years ago
parent
commit
dcde202157
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 11
- 0
Marlin/G26_Mesh_Validation_Tool.cpp View File

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

Loading…
Cancel
Save