ソースを参照

Fix for G26 spam output

while heating, G26 will continuously spam the heater states instead of printing it out every 5000ms.
cdedwards 7年前
コミット
f1843211e6
1個のファイルの変更4行の追加2行の削除
  1. 4
    2
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 4
- 2
Marlin/G26_Mesh_Validation_Tool.cpp ファイルの表示

@@ -785,9 +785,10 @@
785 785
               if (ubl_lcd_clicked()) return exit_from_g26();
786 786
             #endif
787 787
 
788
-            if (PENDING(millis(), next)) {
788
+            if (ELAPSED(millis(), next)) {
789 789
               next = millis() + 5000UL;
790 790
               print_heaterstates();
791
+              SERIAL_EOL();
791 792
             }
792 793
             idle();
793 794
           }
@@ -806,9 +807,10 @@
806 807
         if (ubl_lcd_clicked()) return exit_from_g26();
807 808
       #endif
808 809
 
809
-      if (PENDING(millis(), next)) {
810
+      if (ELAPSED(millis(), next)) {
810 811
         next = millis() + 5000UL;
811 812
         print_heaterstates();
813
+        SERIAL_EOL();
812 814
       }
813 815
       idle();
814 816
     }

読み込み中…
キャンセル
保存