From bfb34e07017248268474281dc6678a8d141458ad Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 12 Nov 2019 11:41:41 -0500 Subject: stepper_enable: Move motor_off() logic to stepper_enable.py Directly disable all the stepper motors on a global motor_off() from the StepperEnable() class in stepper_enable.py. This simplifies the toolhead and kinematic classes. Signed-off-by: Kevin O'Connor --- klippy/homing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/homing.py') diff --git a/klippy/homing.py b/klippy/homing.py index a1d010d7..63530a91 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -125,7 +125,7 @@ class Homing: try: self.toolhead.get_kinematics().home(self) except CommandError: - self.toolhead.motor_off() + self.printer.lookup_object('stepper_enable').motor_off() raise class CommandError(Exception): -- cgit v1.2.3-70-g09d2