Skip to content
Snippets Groups Projects
Commit cb645411 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Workaround for Pronterface M29

parent eeab4141
No related branches found
No related tags found
No related merge requests found
...@@ -350,7 +350,7 @@ inline void get_serial_commands() { ...@@ -350,7 +350,7 @@ inline void get_serial_commands() {
gcode_LastN = gcode_N; gcode_LastN = gcode_N;
} }
#if ENABLED(SDSUPPORT) #if ENABLED(SDSUPPORT)
else if (card.saving) else if (card.saving && strcmp(command, "M29") != 0) // No line number with M29 in Pronterface
return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i); return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
#endif #endif
...@@ -358,13 +358,17 @@ inline void get_serial_commands() { ...@@ -358,13 +358,17 @@ inline void get_serial_commands() {
if (IsStopped()) { if (IsStopped()) {
char* gpos = strchr(command, 'G'); char* gpos = strchr(command, 'G');
if (gpos) { if (gpos) {
const int codenum = strtol(gpos + 1, NULL, 10); switch (strtol(gpos + 1, NULL, 10)) {
switch (codenum) {
case 0: case 0:
case 1: case 1:
case 2: #if ENABLED(ARC_SUPPORT)
case 3: case 2:
SERIAL_ERRORLNPGM_P(i, MSG_ERR_STOPPED); case 3:
#endif
#if ENABLED(BEZIER_CURVE_SUPPORT)
case 5:
#endif
SERIAL_ERRORLNPGM(MSG_ERR_STOPPED);
LCD_MESSAGEPGM(MSG_STOPPED); LCD_MESSAGEPGM(MSG_STOPPED);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment