Put the mandatory test of gcode_N first

2.0.x
Scott Lahteine 10 years ago committed by Richard Wackerbarth
parent 30976f9773
commit 862c72b030

@ -801,7 +801,7 @@ void get_command() {
gcode_N = strtol(npos + 1, NULL, 10); gcode_N = strtol(npos + 1, NULL, 10);
if (!M110 && gcode_N != gcode_LastN + 1) { if (gcode_N != gcode_LastN + 1 && !M110) {
gcode_line_error(PSTR(MSG_ERR_LINE_NO)); gcode_line_error(PSTR(MSG_ERR_LINE_NO));
return; return;
} }

Loading…
Cancel
Save