Browse Source

Put the mandatory test of gcode_N first

Scott Lahteine 10 years ago
parent
commit
862c72b030
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

801
 
801
 
802
         gcode_N = strtol(npos + 1, NULL, 10);
802
         gcode_N = strtol(npos + 1, NULL, 10);
803
 
803
 
804
-        if (!M110 && gcode_N != gcode_LastN + 1) {
804
+        if (gcode_N != gcode_LastN + 1 && !M110) {
805
           gcode_line_error(PSTR(MSG_ERR_LINE_NO));
805
           gcode_line_error(PSTR(MSG_ERR_LINE_NO));
806
           return;
806
           return;
807
         }
807
         }

Loading…
Cancel
Save