Browse Source
M29 logic was reversed
If in card-saving mode generate errors line errors for anything that's *NOT* "M29 ?"
pull/1/head
jeffstaley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
Marlin/src/gcode/queue.cpp
|
@ -630,7 +630,8 @@ inline void get_serial_commands() { |
|
|
gcode_LastN = gcode_N; |
|
|
gcode_LastN = gcode_N; |
|
|
} |
|
|
} |
|
|
#if ENABLED(SDSUPPORT) |
|
|
#if ENABLED(SDSUPPORT) |
|
|
else if (card.flag.saving && command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' ')) |
|
|
// Pronterface "M29" and "M29 " has no line number
|
|
|
|
|
|
else if (card.flag.saving && !(command[0] == 'M' && command[1] == '2' && command[2] == '9' && (command[3] == '\0' || command[3] == ' '))) |
|
|
return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i); |
|
|
return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|