Browse Source

Quickie G35 patch

Scott Lahteine 5 years ago
parent
commit
2b286a101a
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      Marlin/src/gcode/bedlevel/G35.cpp

+ 1
- 3
Marlin/src/gcode/bedlevel/G35.cpp View File

85
   const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD);
85
   const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD);
86
   if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) {
86
   if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) {
87
     SERIAL_ECHOLNPGM("?(S)crew thread must be 30, 31, 40, 41, 50, or 51.");
87
     SERIAL_ECHOLNPGM("?(S)crew thread must be 30, 31, 40, 41, 50, or 51.");
88
-    goto EXIT_G35;
88
+    return;
89
   }
89
   }
90
 
90
 
91
   // Wait for planner moves to finish!
91
   // Wait for planner moves to finish!
184
   // Home Z after the alignment procedure
184
   // Home Z after the alignment procedure
185
   process_subcommands_now_P(PSTR("G28Z"));
185
   process_subcommands_now_P(PSTR("G28Z"));
186
 
186
 
187
-  EXIT_G35:
188
-
189
   if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35");
187
   if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35");
190
 }
188
 }
191
 
189
 

Loading…
Cancel
Save