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

Loading…
Cancel
Save