소스 검색

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 7 년 전
부모
커밋
dcde202157
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11
    0
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 11
- 0
Marlin/G26_Mesh_Validation_Tool.cpp 파일 보기

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

Loading…
취소
저장