瀏覽代碼

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
             #if ENABLED(PRINTER_EVENT_LEDS)
534
             #if ENABLED(PRINTER_EVENT_LEDS)
535
               printerEventLEDs.onPrintCompleted();
535
               printerEventLEDs.onPrintCompleted();
536
               #if HAS_RESUME_CONTINUE
536
               #if HAS_RESUME_CONTINUE
537
-                inject_P(PSTR("M0 S"
537
+                enqueue_now_P(PSTR("M0 Q S"
538
                   #if HAS_LCD_MENU
538
                   #if HAS_LCD_MENU
539
                     "1800"
539
                     "1800"
540
                   #else
540
                   #else
542
                   #endif
542
                   #endif
543
                 ));
543
                 ));
544
               #endif
544
               #endif
545
-            #endif // PRINTER_EVENT_LEDS
545
+            #endif
546
           }
546
           }
547
         }
547
         }
548
         else if (n == -1)
548
         else if (n == -1)

Loading…
取消
儲存