diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 11:58:26 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-01-21 18:58:23 -0500 |
commit | 6ab253366cca1b5d2d8e9dec6ea243c0853612f7 (patch) | |
tree | 6d2cd4c584ac426cf4fcf3b2ed3c0e6625db15a9 /klippy/kinematics/deltesian.py | |
parent | 4aa550837fc170d0b77a0d461ca4f970b7bee7ae (diff) | |
download | kutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.tar.gz kutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.tar.xz kutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.zip |
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>
Diffstat (limited to 'klippy/kinematics/deltesian.py')
-rw-r--r-- | klippy/kinematics/deltesian.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/kinematics/deltesian.py b/klippy/kinematics/deltesian.py index e0118b34..1f7ddaa0 100644 --- a/klippy/kinematics/deltesian.py +++ b/klippy/kinematics/deltesian.py @@ -116,10 +116,10 @@ class DeltesianKinematics: for axis_name in homing_axes: axis = "xyz".index(axis_name) self.homed_axis[axis] = True - def clear_homing_state(self, axes): - for i, _ in enumerate(self.limits): - if i in axes: - self.homed_axis[i] = False + def clear_homing_state(self, clear_axes): + for axis, axis_name in enumerate("xyz"): + if axis_name in clear_axes: + self.homed_axis[axis] = False def home(self, homing_state): homing_axes = homing_state.get_axes() home_xz = 0 in homing_axes or 2 in homing_axes |