Merge pull request #7515 from cdedwards/bugfix-1.1.x

Fix for G26 spam output
This commit is contained in:
Scott Lahteine 2017-08-16 16:01:10 -05:00 committed by GitHub
commit 2a31c9f2ce

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