From 4aa550837fc170d0b77a0d461ca4f970b7bee7ae Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jan 2025 11:27:30 -0500 Subject: toolhead: Pass set_position() homing_axes parameter as a string Use strings such as "xyz" to specify which axes are to be considered homing during a set_position() call. This makes the parameter a little less cryptic. Signed-off-by: Kevin O'Connor --- klippy/extras/safe_z_home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/safe_z_home.py') diff --git a/klippy/extras/safe_z_home.py b/klippy/extras/safe_z_home.py index ca0756cf..3ebaa13e 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -37,7 +37,7 @@ class SafeZHoming: if 'z' not in kin_status['homed_axes']: # Always perform the z_hop if the Z axis is not homed pos[2] = 0 - toolhead.set_position(pos, homing_axes=[2]) + toolhead.set_position(pos, homing_axes="z") toolhead.manual_move([None, None, self.z_hop], self.z_hop_speed) toolhead.get_kinematics().clear_homing_state((2,)) -- cgit v1.2.3-70-g09d2