mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 07:17:59 +00:00
🩹 Fix type mismatch when SEGMENT_LEVELED_MOVES disabled (#26819)
This commit is contained in:
parent
77f93e0b8c
commit
a337a43bfd
@ -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) {
|
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
|
// 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.x, GRID_MAX_CELLS_X - 1);
|
||||||
NOMORE(scel.y, GRID_MAX_CELLS_Y - 1);
|
NOMORE(scel.y, GRID_MAX_CELLS_Y - 1);
|
||||||
NOMORE(ecel.x, GRID_MAX_CELLS_X - 1);
|
NOMORE(ecel.x, GRID_MAX_CELLS_X - 1);
|
||||||
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
float normalized_dist;
|
float normalized_dist;
|
||||||
xyze_pos_t dest;
|
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?
|
// Crosses on the X and not already split on this X?
|
||||||
// The x_splits flags are insurance against rounding errors.
|
// The x_splits flags are insurance against rounding errors.
|
||||||
|
Loading…
Reference in New Issue
Block a user