Fix for G26 spam output

while heating, G26 will continuously spam the heater states instead of printing it out every 5000ms.
2.0.x
cdedwards 7 years ago
parent 419c8969a7
commit f1843211e6

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

Loading…
Cancel
Save