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,7 +801,7 @@ void get_command() {
801 801
 
802 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 805
           gcode_line_error(PSTR(MSG_ERR_LINE_NO));
806 806
           return;
807 807
         }

Loading…
Cancel
Save