From 6ab253366cca1b5d2d8e9dec6ea243c0853612f7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jan 2025 11:58:26 -0500 Subject: 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 --- klippy/kinematics/polar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/kinematics/polar.py') diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py index 548b4bac..73967c29 100644 --- a/klippy/kinematics/polar.py +++ b/klippy/kinematics/polar.py @@ -49,11 +49,11 @@ class PolarKinematics: self.limit_z = self.rails[1].get_range() 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: + def clear_homing_state(self, clear_axes): + if "x" in clear_axes or "y" in clear_axes: # X and Y cannot be cleared separately self.limit_xy2 = -1. - if 2 in axes: + if "z" in clear_axes: self.limit_z = (1.0, -1.0) def _home_axis(self, homing_state, axis, rail): # Determine movement -- cgit v1.2.3-70-g09d2