Clean up autostart handling

This commit is contained in:
Scott Lahteine
2018-05-01 01:01:02 -05:00
parent c87b0e21be
commit 05fca752d6
5 changed files with 46 additions and 55 deletions

View File

@ -894,19 +894,17 @@ void setup() {
*
* - Save or log commands to SD
* - Process available commands (if not saving)
* - Call heater manager
* - Call inactivity manager
* - Call endstop manager
* - Call LCD update
* - Call inactivity manager
*/
void loop() {
#if ENABLED(SDSUPPORT)
card.checkautostart(false);
#endif
for (;;) {
#if ENABLED(SDSUPPORT)
card.checkautostart();
#endif
#if ENABLED(SDSUPPORT) && ENABLED(ULTIPANEL)
if (abort_sd_printing) {
abort_sd_printing = false;