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
fa4a6cdb5c
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

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

Loading…
Cancel
Save