diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 11:27:30 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-01-21 18:58:23 -0500 |
commit | 4aa550837fc170d0b77a0d461ca4f970b7bee7ae (patch) | |
tree | 7a185d949b9179c5f9b3977539e9cfda5ca7756e /klippy/extras/force_move.py | |
parent | c72d73ec450119b5fbe13d98409037a21ae97101 (diff) | |
download | kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.gz kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.xz kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/force_move.py')
-rw-r--r-- | klippy/extras/force_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |