소스 검색

Update queue.cpp

Scott Lahteine 6 년 전
부모
커밋
a49f0205ea
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp 파일 보기

631
         }
631
         }
632
         #if ENABLED(SDSUPPORT)
632
         #if ENABLED(SDSUPPORT)
633
           // Pronterface "M29" and "M29 " has no line number 
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
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
635
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
636
         #endif
636
         #endif
637
 
637
 
840
 
840
 
841
     if (card.flag.saving) {
841
     if (card.flag.saving) {
842
       char* command = command_queue[cmd_queue_index_r];
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
         // M29 closes the file
844
         // M29 closes the file
845
         card.closefile();
845
         card.closefile();
846
         SERIAL_ECHOLNPGM(MSG_FILE_SAVED);
846
         SERIAL_ECHOLNPGM(MSG_FILE_SAVED);

Loading…
취소
저장