diff --git a/Marlin/src/core/types.h b/Marlin/src/core/types.h index aee25a0dfff44..a3e249df16970 100644 --- a/Marlin/src/core/types.h +++ b/Marlin/src/core/types.h @@ -543,9 +543,9 @@ struct XYZEval { FI void set(const XYZval pxyz) { set(LINEAR_AXIS_ELEM(pxyz)); } #if HAS_Z_AXIS FI void set(LINEAR_AXIS_ARGS(const T)) { LINEAR_AXIS_CODE(a = x, b = y, c = z, u = i, v = j, w = k); } + FI void set(const XYval pxy, const T pz) { set(pxy); z = pz; } #endif #if LOGICAL_AXES > LINEAR_AXES - FI void set(const XYval pxy, const T pe) { set(pxy); e = pe; } FI void set(const XYZval pxyz, const T pe) { set(pxyz); e = pe; } FI void set(LOGICAL_AXIS_ARGS(const T)) { LOGICAL_AXIS_CODE(_e = e, a = x, b = y, c = z, u = i, v = j, w = k); } #endif diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 4f57d740f961d..48f02d2a33100 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -137,7 +137,7 @@ constexpr xy_float_t okay_homing_xy = safe_homing_xy; #endif - destination.set(okay_homing_xy.x, okay_homing_xy.y, current_position.z); + destination.set(okay_homing_xy, current_position.z); TERN_(HOMING_Z_WITH_PROBE, destination -= probe.offset_xy);