Browse Source

Update queue.cpp

Scott Lahteine 6 years ago
parent
commit
a49f0205ea
No account linked to committer's email address
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

@@ -631,7 +631,7 @@ inline void get_serial_commands() {
631 631
         }
632 632
         #if ENABLED(SDSUPPORT)
633 633
           // Pronterface "M29" and "M29 " has no line number 
634
-          else if (card.flag.saving && !(command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' ')))
634
+          else if (card.flag.saving && !(command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' ' ||  || command[3] == '*')))
635 635
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
636 636
         #endif
637 637
 
@@ -840,7 +840,7 @@ void advance_command_queue() {
840 840
 
841 841
     if (card.flag.saving) {
842 842
       char* command = command_queue[cmd_queue_index_r];
843
-      if (command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' ')) {
843
+      if (command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' ' ||  || command[3] == '*')) {
844 844
         // M29 closes the file
845 845
         card.closefile();
846 846
         SERIAL_ECHOLNPGM(MSG_FILE_SAVED);

Loading…
Cancel
Save