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/kinematics/corexz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/kinematics/corexz.py') diff --git a/klippy/kinematics/corexz.py b/klippy/kinematics/corexz.py index 5298698d..34def72a 100644 --- a/klippy/kinematics/corexz.py +++ b/klippy/kinematics/corexz.py @@ -39,7 +39,7 @@ class CoreXZKinematics: def set_position(self, newpos, homing_axes): for i, rail in enumerate(self.rails): rail.set_position(newpos) - if i in homing_axes: + if "xyz"[i] in homing_axes: self.limits[i] = rail.get_range() def clear_homing_state(self, axes): for i, _ in enumerate(self.limits): -- cgit v1.2.3-70-g09d2