浏览代码

M29 logic was reversed

If in card-saving mode generate errors line errors for anything that's *NOT* "M29 ?"
jeffstaley 6 年前
父节点
当前提交
3f91233f6d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      Marlin/src/gcode/queue.cpp

+ 2
- 1
Marlin/src/gcode/queue.cpp 查看文件

630
           gcode_LastN = gcode_N;
630
           gcode_LastN = gcode_N;
631
         }
631
         }
632
         #if ENABLED(SDSUPPORT)
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
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
635
             return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
635
         #endif
636
         #endif
636
 
637
 

正在加载...
取消
保存