Browse Source

Fix Start SD Print bug (#14354)

Followup to the G-code parser injection update.
InsanityAutomation 5 years ago
parent
commit
5df051fdee
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/sd/cardreader.cpp

+ 1
- 1
Marlin/src/sd/cardreader.cpp View File

@@ -368,7 +368,7 @@ void CardReader::openAndPrintFile(const char *name) {
368 368
   sprintf_P(cmd, PSTR("M23 %s"), name);
369 369
   for (char *c = &cmd[4]; *c; c++) *c = tolower(*c);
370 370
   queue.enqueue_one_now(cmd);
371
-  queue.inject_P(PSTR("M24"));
371
+  queue.enqueue_now_P(PSTR("M24"));
372 372
 }
373 373
 
374 374
 void CardReader::startFileprint() {

Loading…
Cancel
Save