diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-12-05 21:03:49 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 19:13:54 -0500 |
commit | 2a8dd5c51f4097ae1142b681af75f529bb9e37f3 (patch) | |
tree | d20df1e8a647a864a450df744e763139ffd5a8d5 /klippy/stepper.py | |
parent | c78f66b8e8269bb75658e71e83fc20670d3cf0ae (diff) | |
download | kutter-2a8dd5c51f4097ae1142b681af75f529bb9e37f3.tar.gz kutter-2a8dd5c51f4097ae1142b681af75f529bb9e37f3.tar.xz kutter-2a8dd5c51f4097ae1142b681af75f529bb9e37f3.zip |
mcu: Reset the stepper step clock on init - not after each motor on
Reset the last step clock during the init phase and after each home -
this simplifies the runtime code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r-- | klippy/stepper.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py index d0a6bc80..c532d21a 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -44,8 +44,6 @@ class PrinterStepper: def set_position(self, pos): self.mcu_stepper.set_position(pos) def motor_enable(self, print_time, enable=0): - if enable and self.need_motor_enable: - self.mcu_stepper.reset_step_clock(print_time) if (self.mcu_enable is not None and self.mcu_enable.get_last_setting() != enable): self.mcu_enable.set_digital(print_time, enable) |