Fix for G26 spam output

while heating, G26 will continuously spam the heater states instead of printing it out every 5000ms.
This commit is contained in:
cdedwards 2017-08-15 17:04:53 -06:00
parent 419c8969a7
commit f1843211e6

View file

@ -785,9 +785,10 @@
if (ubl_lcd_clicked()) return exit_from_g26(); if (ubl_lcd_clicked()) return exit_from_g26();
#endif #endif
if (PENDING(millis(), next)) { if (ELAPSED(millis(), next)) {
next = millis() + 5000UL; next = millis() + 5000UL;
print_heaterstates(); print_heaterstates();
SERIAL_EOL();
} }
idle(); idle();
} }
@ -806,9 +807,10 @@
if (ubl_lcd_clicked()) return exit_from_g26(); if (ubl_lcd_clicked()) return exit_from_g26();
#endif #endif
if (PENDING(millis(), next)) { if (ELAPSED(millis(), next)) {
next = millis() + 5000UL; next = millis() + 5000UL;
print_heaterstates(); print_heaterstates();
SERIAL_EOL();
} }
idle(); idle();
} }