Browse Source

Fix out-of-order M0 after SD printing

Fixes #14774

Co-Authored-By: tol2cj <tol2cj@users.noreply.github.com>
Scott Lahteine 5 years ago
parent
commit
dd6a7ca197
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp View File

@@ -534,7 +534,7 @@ void GCodeQueue::get_serial_commands() {
534 534
             #if ENABLED(PRINTER_EVENT_LEDS)
535 535
               printerEventLEDs.onPrintCompleted();
536 536
               #if HAS_RESUME_CONTINUE
537
-                inject_P(PSTR("M0 S"
537
+                enqueue_now_P(PSTR("M0 Q S"
538 538
                   #if HAS_LCD_MENU
539 539
                     "1800"
540 540
                   #else
@@ -542,7 +542,7 @@ void GCodeQueue::get_serial_commands() {
542 542
                   #endif
543 543
                 ));
544 544
               #endif
545
-            #endif // PRINTER_EVENT_LEDS
545
+            #endif
546 546
           }
547 547
         }
548 548
         else if (n == -1)

Loading…
Cancel
Save