Skip to content

Commit

Permalink
馃┕ Fix type mismatch when SEGMENT_LEVELED_MOVES disabled (#26819)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp committed Apr 7, 2024
1 parent 77f93e0 commit a337a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.cpp
Expand Up @@ -63,7 +63,7 @@
*/
void mesh_bed_leveling::line_to_destination(const_feedRate_t scaled_fr_mm_s, uint8_t x_splits, uint8_t y_splits) {
// Get current and destination cells for this line
xy_int8_t scel = cell_indexes(current_position), ecel = cell_indexes(destination);
xy_uint8_t scel = cell_indexes(current_position), ecel = cell_indexes(destination);
NOMORE(scel.x, GRID_MAX_CELLS_X - 1);
NOMORE(scel.y, GRID_MAX_CELLS_Y - 1);
NOMORE(ecel.x, GRID_MAX_CELLS_X - 1);
Expand All @@ -80,7 +80,7 @@

float normalized_dist;
xyze_pos_t dest;
const int8_t gcx = _MAX(scel.x, ecel.x), gcy = _MAX(scel.y, ecel.y);
const uint8_t gcx = _MAX(scel.x, ecel.x), gcy = _MAX(scel.y, ecel.y);

// Crosses on the X and not already split on this X?
// The x_splits flags are insurance against rounding errors.
Expand Down

0 comments on commit a337a43

Please sign in to comment.