Browse Source

Quickie G35 patch

Scott Lahteine 4 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,7 +85,7 @@ void GcodeSuite::G35() {
85 85
   const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD);
86 86
   if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) {
87 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 91
   // Wait for planner moves to finish!
@@ -184,8 +184,6 @@ void GcodeSuite::G35() {
184 184
   // Home Z after the alignment procedure
185 185
   process_subcommands_now_P(PSTR("G28Z"));
186 186
 
187
-  EXIT_G35:
188
-
189 187
   if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35");
190 188
 }
191 189
 

Loading…
Cancel
Save