mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
stepper: Reset the next step time on a stepper stop
Automatically reset the next step time to zero on a stepper_stop() call. This makes the host code simpler as it no longer needs to schedule an explicit reset_step_clock command on the step after a homing operation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
941427554a
commit
9ad8153d33
3 changed files with 5 additions and 8 deletions
|
@ -71,8 +71,8 @@ class PrinterStepper:
|
|||
self.need_motor_enable = True
|
||||
def prep_move(self, move_time):
|
||||
mcu_time = self.mcu_stepper.print_to_mcu_time(move_time)
|
||||
self.mcu_stepper.check_reset(mcu_time)
|
||||
if self.need_motor_enable:
|
||||
self.mcu_stepper.reset_step_clock(mcu_time)
|
||||
self.motor_enable(move_time, 1)
|
||||
self.need_motor_enable = False
|
||||
return (mcu_time, self.mcu_stepper)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue