Put the mandatory test of gcode_N first
This commit is contained in:
parent
30976f9773
commit
862c72b030
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue