Put the mandatory test of gcode_N first

This commit is contained in:
Scott Lahteine 2015-06-23 17:57:38 -07:00 committed by Richard Wackerbarth
parent 30976f9773
commit 862c72b030

View File

@ -801,7 +801,7 @@ void get_command() {
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));
return;
}