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

Loading…
Cancel
Save