Browse Source

Fix for G26 spam output

while heating, G26 will continuously spam the heater states instead of printing it out every 5000ms.
cdedwards 7 years ago
parent
commit
f1843211e6
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 4
- 2
Marlin/G26_Mesh_Validation_Tool.cpp View File

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

Loading…
Cancel
Save