From fa4a6cdb5c05abc812a9dce5f20956c0dd42386a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 10 Feb 2020 16:33:21 -0600 Subject: [PATCH] Fix out-of-order M0 after SD printing Fixes #14774 Co-Authored-By: tol2cj --- Marlin/src/gcode/queue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index b83a21196..c01a92ab1 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -536,7 +536,7 @@ void GCodeQueue::get_serial_commands() { #if ENABLED(PRINTER_EVENT_LEDS) printerEventLEDs.onPrintCompleted(); #if HAS_RESUME_CONTINUE - inject_P(PSTR("M0 Q S" + enqueue_now_P(PSTR("M0 Q S" #if HAS_LCD_MENU "1800" #else @@ -544,7 +544,7 @@ void GCodeQueue::get_serial_commands() { #endif )); #endif - #endif // PRINTER_EVENT_LEDS + #endif } } else if (n < 0)