From 8ed0f7c5c37a3e2a3c38d19b19bbd6846453a6df Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 13 Jan 2020 21:39:55 -0500 Subject: kinematics: Remove support for identifying Z steppers The caller can now determine which steppers are connected to cartesian Z movement via the new stepper.is_active_axis() method. It is therefore no longer necessary for the kinematic code to identify these steppers. Signed-off-by: Kevin O'Connor --- klippy/extras/bltouch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'klippy/extras/bltouch.py') diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index f372b1ab..c4556342 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -62,8 +62,9 @@ class BLTouchEndstopWrapper: desc=self.cmd_BLTOUCH_DEBUG_help) def _build_config(self): kin = self.printer.lookup_object('toolhead').get_kinematics() - for stepper in kin.get_steppers('Z'): - self.add_stepper(stepper) + for stepper in kin.get_steppers(): + if stepper.is_active_axis('z'): + self.add_stepper(stepper) def handle_connect(self): try: self.raise_probe() -- cgit v1.2.3-70-g09d2