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();
#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();
}