From f1843211e67143d6e9a220789938bdaa7f8a1a41 Mon Sep 17 00:00:00 2001
From: cdedwards <cd.edwards@sasktel.net>
Date: Tue, 15 Aug 2017 17:04:53 -0600
Subject: [PATCH] Fix for G26 spam output

while heating, G26 will continuously spam the heater states instead of printing it out every 5000ms.
---
 Marlin/G26_Mesh_Validation_Tool.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Marlin/G26_Mesh_Validation_Tool.cpp b/Marlin/G26_Mesh_Validation_Tool.cpp
index a0e17fe76fb..ffcad389f28 100644
--- a/Marlin/G26_Mesh_Validation_Tool.cpp
+++ b/Marlin/G26_Mesh_Validation_Tool.cpp
@@ -785,9 +785,10 @@
               if (ubl_lcd_clicked()) return exit_from_g26();
             #endif
 
-            if (PENDING(millis(), next)) {
+            if (ELAPSED(millis(), next)) {
               next = millis() + 5000UL;
               print_heaterstates();
+              SERIAL_EOL();
             }
             idle();
           }
@@ -806,9 +807,10 @@
         if (ubl_lcd_clicked()) return exit_from_g26();
       #endif
 
-      if (PENDING(millis(), next)) {
+      if (ELAPSED(millis(), next)) {
         next = millis() + 5000UL;
         print_heaterstates();
+        SERIAL_EOL();
       }
       idle();
     }