Browse Source

Fix meshCount signed-ness

Scott Lahteine 5 years ago
parent
commit
e3ddf6e81a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 3
- 3
Marlin/src/gcode/bedlevel/abl/G29.cpp View File

@@ -225,7 +225,7 @@ G29_TYPE GcodeSuite::G29() {
225 225
   #if ABL_GRID
226 226
 
227 227
     #if ENABLED(PROBE_MANUALLY)
228
-      ABL_VAR xy_int8_t meshCount;
228
+      ABL_VAR xy_uint8_t meshCount;
229 229
     #endif
230 230
 
231 231
     ABL_VAR xy_int_t probe_position_lf, probe_position_rb;
@@ -678,7 +678,7 @@ G29_TYPE GcodeSuite::G29() {
678 678
 
679 679
       measured_z = 0;
680 680
 
681
-      xy_int8_t meshCount;
681
+      xy_uint8_t meshCount;
682 682
 
683 683
       // Outer loop is X with PROBE_Y_FIRST enabled
684 684
       // Outer loop is Y with PROBE_Y_FIRST disabled
@@ -746,7 +746,7 @@ G29_TYPE GcodeSuite::G29() {
746 746
 
747 747
             z_values[meshCount.x][meshCount.y] = measured_z + zoffset;
748 748
             #if ENABLED(EXTENSIBLE_UI)
749
-              ExtUI::onMeshUpdate(meshCount.x, meshCount.y, z_values[meshCount.x][meshCount.y]);
749
+              ExtUI::onMeshUpdate(meshCount, z_values[meshCount.x][meshCount.y]);
750 750
             #endif
751 751
 
752 752
           #endif

Loading…
Cancel
Save