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/force_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/force_move.py') diff --git a/klippy/extras/force_move.py b/klippy/extras/force_move.py index 598783a4..0b2187fd 100644 --- a/klippy/extras/force_move.py +++ b/klippy/extras/force_move.py @@ -136,7 +136,7 @@ class ForceMove: clear_axes = [axes.index(a) for a in axes if a in clear] logging.info("SET_KINEMATIC_POSITION pos=%.3f,%.3f,%.3f clear=%s", x, y, z, ','.join((axes[i] for i in clear_axes))) - toolhead.set_position([x, y, z, curpos[3]], homing_axes=(0, 1, 2)) + toolhead.set_position([x, y, z, curpos[3]], homing_axes="xyz") toolhead.get_kinematics().clear_homing_state(clear_axes) def load_config(config): -- cgit v1.2.3-70-g09d2