From 2b286a101a676d6139f1807eae047cec9125e53e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 21 Jun 2020 22:53:34 -0500 Subject: [PATCH] Quickie G35 patch --- Marlin/src/gcode/bedlevel/G35.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Marlin/src/gcode/bedlevel/G35.cpp b/Marlin/src/gcode/bedlevel/G35.cpp index 7a42744c74..f4153f372c 100755 --- a/Marlin/src/gcode/bedlevel/G35.cpp +++ b/Marlin/src/gcode/bedlevel/G35.cpp @@ -85,7 +85,7 @@ void GcodeSuite::G35() { const uint8_t screw_thread = parser.byteval('S', TRAMMING_SCREW_THREAD); if (!WITHIN(screw_thread, 30, 51) || screw_thread % 10 > 1) { SERIAL_ECHOLNPGM("?(S)crew thread must be 30, 31, 40, 41, 50, or 51."); - goto EXIT_G35; + return; } // Wait for planner moves to finish! @@ -184,8 +184,6 @@ void GcodeSuite::G35() { // Home Z after the alignment procedure process_subcommands_now_P(PSTR("G28Z")); - EXIT_G35: - if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("<<< G35"); }