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>
This commit is contained in:
Kevin O'Connor 2017-12-05 21:03:49 -05:00
parent c78f66b8e8
commit 2a8dd5c51f
2 changed files with 8 additions and 15 deletions

View file

@ -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)