소스 검색

M29 logic was reversed

If in card-saving mode generate errors line errors for anything that's *NOT* "M29 ?"
jeffstaley 6 년 전
부모
커밋
3f91233f6d
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      Marlin/src/gcode/queue.cpp

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

@@ -630,7 +630,8 @@ inline void get_serial_commands() {
630 630
           gcode_LastN = gcode_N;
631 631
         }
632 632
         #if ENABLED(SDSUPPORT)
633
-          else if (card.flag.saving && command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' '))
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 635
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
635 636
         #endif
636 637
 

Loading…
취소
저장