浏览代码

Fix out-of-order M0 after SD printing

Fixes #14774

Co-Authored-By: tol2cj <tol2cj@users.noreply.github.com>
Scott Lahteine 5 年前
父节点
当前提交
dd6a7ca197
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp 查看文件

@@ -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)

正在加载...
取消
保存