Fix G29 for updated meshCount type (#15960)

2.0.x
Jason Smith 5 years ago committed by Scott Lahteine
parent 751cd1f533
commit 4ede13e36a

@ -684,7 +684,7 @@ G29_TYPE GcodeSuite::G29() {
// Outer loop is Y with PROBE_Y_FIRST disabled // 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++) { for (PR_OUTER_VAR = 0; PR_OUTER_VAR < PR_OUTER_END && !isnan(measured_z); PR_OUTER_VAR++) {
uint8_t inStart, inStop, inInc; int8_t inStart, inStop, inInc;
if (zig) { // away from origin if (zig) { // away from origin
inStart = 0; inStart = 0;
@ -693,8 +693,8 @@ G29_TYPE GcodeSuite::G29() {
} }
else { // towards origin else { // towards origin
inStart = PR_INNER_END - 1; inStart = PR_INNER_END - 1;
inStop = 0xFF; inStop = -1;
inInc = 0xFF; inInc = -1;
} }
zig ^= true; // zag zig ^= true; // zag

Loading…
Cancel
Save