mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 00:07:54 -06:00
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:
parent
c78f66b8e8
commit
2a8dd5c51f
2 changed files with 8 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue