Browse Source

Quickie G35 patch

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
2b286a101a
  1. 4
      Marlin/src/gcode/bedlevel/G35.cpp

4
Marlin/src/gcode/bedlevel/G35.cpp

@ -85,7 +85,7 @@ void GcodeSuite::G35() {
const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD); const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD);
if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) { if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) {
SERIAL_ECHOLNPGM("?(S)crew thread must be 30, 31, 40, 41, 50, or 51."); SERIAL_ECHOLNPGM("?(S)crew thread must be 30, 31, 40, 41, 50, or 51.");
goto EXIT_G35; return;
} }
// Wait for planner moves to finish! // Wait for planner moves to finish!
@ -184,8 +184,6 @@ void GcodeSuite::G35() {
// Home Z after the alignment procedure // Home Z after the alignment procedure
process_subcommands_now_P(PSTR("G28Z")); process_subcommands_now_P(PSTR("G28Z"));
EXIT_G35:
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35"); if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35");
} }

Loading…
Cancel
Save