mirror of
git://soft.sys114.com/klipper
synced 2026-02-12 04:30:25 +09:00
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 <kevin@koconnor.net>
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user