Skip to content

Commit

Permalink
Fix out-of-order M0 after SD printing
Browse files Browse the repository at this point in the history
Fixes MarlinFirmware#14774

Co-Authored-By: tol2cj <tol2cj@users.noreply.github.com>
  • Loading branch information
thinkyhead and tol2cj committed Feb 10, 2020
1 parent 62b9d7d commit dd6a7ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,15 @@ void GCodeQueue::get_serial_commands() {
#if ENABLED(PRINTER_EVENT_LEDS)
printerEventLEDs.onPrintCompleted();
#if HAS_RESUME_CONTINUE
inject_P(PSTR("M0 S"
enqueue_now_P(PSTR("M0 Q S"
#if HAS_LCD_MENU
"1800"
#else
"60"
#endif
));
#endif
#endif // PRINTER_EVENT_LEDS
#endif
}
}
else if (n == -1)
Expand Down

0 comments on commit dd6a7ca

Please sign in to comment.