mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 15:40:26 +09:00
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 <kevin@koconnor.net>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user