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/polar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/kinematics/polar.py') diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py index 8369d386..548b4bac 100644 --- a/klippy/kinematics/polar.py +++ b/klippy/kinematics/polar.py @@ -45,9 +45,9 @@ class PolarKinematics: def set_position(self, newpos, homing_axes): for s in self.steppers: s.set_position(newpos) - if 2 in homing_axes: + if "z" in homing_axes: self.limit_z = self.rails[1].get_range() - if 0 in homing_axes and 1 in homing_axes: + if "x" in homing_axes and "y" in homing_axes: self.limit_xy2 = self.rails[0].get_range()[1]**2 def clear_homing_state(self, axes): if 0 in axes or 1 in axes: -- cgit v1.2.3-70-g09d2