From 6ab253366cca1b5d2d8e9dec6ea243c0853612f7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jan 2025 11:58:26 -0500 Subject: force_move: Use strings for axes to clear in clear_homing_state() Pass a string such as "xyz" to kin.clear_homing_state(). 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 3ebaa13e..32b515b9 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -40,7 +40,7 @@ class SafeZHoming: 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,)) + toolhead.get_kinematics().clear_homing_state("z") elif pos[2] < self.z_hop: # If the Z axis is homed, and below z_hop, lift it to z_hop toolhead.manual_move([None, None, self.z_hop], -- cgit v1.2.3-70-g09d2