Skip to content

Commit ca99060

Browse files
GMagicianAndy-Big
authored andcommitted
🎨 Suppress a type warning (MarlinFirmware#25575)
1 parent 055c422 commit ca99060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/module/probe.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ class Probe {
306306
points[1] = xy_float_t({ (X_CENTER) + probe_radius() * COS120, (Y_CENTER) + probe_radius() * SIN120 });
307307
points[2] = xy_float_t({ (X_CENTER) + probe_radius() * COS240, (Y_CENTER) + probe_radius() * SIN240 });
308308
#elif ENABLED(AUTO_BED_LEVELING_UBL)
309-
points[0] = xy_float_t({ _MAX(MESH_MIN_X, min_x()), _MAX(MESH_MIN_Y, min_y()) });
310-
points[1] = xy_float_t({ _MIN(MESH_MAX_X, max_x()), _MAX(MESH_MIN_Y, min_y()) });
311-
points[2] = xy_float_t({ (_MAX(MESH_MIN_X, min_x()) + _MIN(MESH_MAX_X, max_x())) / 2, _MIN(MESH_MAX_Y, max_y()) });
309+
points[0] = xy_float_t({ _MAX(float(MESH_MIN_X), min_x()), _MAX(float(MESH_MIN_Y), min_y()) });
310+
points[1] = xy_float_t({ _MIN(float(MESH_MAX_X), max_x()), _MAX(float(MESH_MIN_Y), min_y()) });
311+
points[2] = xy_float_t({ (_MAX(float(MESH_MIN_X), min_x()) + _MIN(float(MESH_MAX_X), max_x())) / 2, _MIN(float(MESH_MAX_Y), max_y()) });
312312
#else
313313
points[0] = xy_float_t({ min_x(), min_y() });
314314
points[1] = xy_float_t({ max_x(), min_y() });

0 commit comments

Comments
 (0)