diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-21 17:58:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 14:09:01 -0400 |
commit | 9a97a348ae8ba765f8e6877b41eeb76805911863 (patch) | |
tree | 067aa165fb73858d87476338a9ccae02ad7b6a5c /klippy/cartesian.py | |
parent | 28b7a286517058e782fc7e20da8b6332a7c7661d (diff) | |
download | kutter-9a97a348ae8ba765f8e6877b41eeb76805911863.tar.gz kutter-9a97a348ae8ba765f8e6877b41eeb76805911863.tar.xz kutter-9a97a348ae8ba765f8e6877b41eeb76805911863.zip |
stepper: Add a is_stepper_enabled() method to PrinterStepper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py index 096d0fd2..8bf2f609 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -117,7 +117,7 @@ class CartKinematics: for i in StepList: if move.axes_d[i]: self.steppers[i].motor_enable(print_time, 1) - need_motor_enable |= self.steppers[i].need_motor_enable + need_motor_enable |= not self.steppers[i].is_motor_enabled() self.need_motor_enable = need_motor_enable def _check_endstops(self, move): end_pos = move.end_pos |