@@ -351,7 +351,7 @@ void unified_bed_leveling::G29() {
351351
352352 // Invalidate one or more nearby mesh points, possibly all.
353353 if (parser.seen (' I' )) {
354- uint8_t count = parser.has_value () ? parser.value_byte () : 1 ;
354+ grid_count_t count = parser.has_value () ? parser.value_ushort () : 1 ;
355355 bool invalidate_all = count >= GRID_MAX_POINTS;
356356 if (!invalidate_all) {
357357 while (count--) {
@@ -760,14 +760,14 @@ void unified_bed_leveling::shift_mesh_height() {
760760 TERN_ (DWIN_LCD_PROUI, DWIN_LevelingStart ());
761761
762762 save_ubl_active_state_and_disable (); // No bed level correction so only raw data is obtained
763- uint8_t count = GRID_MAX_POINTS;
763+ grid_count_t count = GRID_MAX_POINTS;
764764
765765 mesh_index_pair best;
766766 TERN_ (EXTENSIBLE_UI, ExtUI::onMeshUpdate (best.pos , ExtUI::G29_START));
767767 do {
768768 if (do_ubl_mesh_map) display_map (param.T_map_type );
769769
770- const uint8_t point_num = (GRID_MAX_POINTS - count) + 1 ;
770+ const grid_count_t point_num = (GRID_MAX_POINTS - count) + 1 ;
771771 SERIAL_ECHOLNPGM (" Probing mesh point " , point_num, " /" , GRID_MAX_POINTS, " ." );
772772 TERN_ (HAS_STATUS_MESSAGE, ui.status_printf (0 , F (S_FMT " %i/%i" ), GET_TEXT (MSG_PROBING_POINT), point_num, int (GRID_MAX_POINTS)));
773773
@@ -1135,7 +1135,7 @@ bool unified_bed_leveling::G29_parse_parameters() {
11351135 param.R_repetition = 0 ;
11361136
11371137 if (parser.seen (' R' )) {
1138- param.R_repetition = parser.has_value () ? parser.value_byte () : GRID_MAX_POINTS;
1138+ param.R_repetition = parser.has_value () ? parser.value_ushort () : GRID_MAX_POINTS;
11391139 NOMORE (param.R_repetition , GRID_MAX_POINTS);
11401140 if (param.R_repetition < 1 ) {
11411141 SERIAL_ECHOLNPGM (" ?(R)epetition count invalid (1+).\n " );
0 commit comments