From ad28da7eb4fe720776daf929d0a25ba39e6b6ca8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 1 Nov 2019 15:38:41 -0500 Subject: [PATCH] Patch ABL G29 loop Followup to e3ddf6e81a --- Marlin/src/gcode/bedlevel/abl/G29.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/gcode/bedlevel/abl/G29.cpp b/Marlin/src/gcode/bedlevel/abl/G29.cpp index c3e52fe3f9..c17150f79d 100644 --- a/Marlin/src/gcode/bedlevel/abl/G29.cpp +++ b/Marlin/src/gcode/bedlevel/abl/G29.cpp @@ -684,7 +684,7 @@ G29_TYPE GcodeSuite::G29() { // Outer loop is Y with PROBE_Y_FIRST disabled for (PR_OUTER_VAR = 0; PR_OUTER_VAR < PR_OUTER_END && !isnan(measured_z); PR_OUTER_VAR++) { - int8_t inStart, inStop, inInc; + uint8_t inStart, inStop, inInc; if (zig) { // away from origin inStart = 0; @@ -693,8 +693,8 @@ G29_TYPE GcodeSuite::G29() { } else { // towards origin inStart = PR_INNER_END - 1; - inStop = -1; - inInc = -1; + inStop = 0xFF; + inInc = 0xFF; } zig ^= true; // zag