aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-14 13:10:14 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-14 13:10:14 -0500
commit9ad8153d331273259d584efc72145acd71a8485a (patch)
treec6a29fd6f85acd7e0c310084484d6ed2924defc8 /klippy/stepper.py
parent941427554a23dd0ae963eb9df7d2724c7c90809b (diff)
downloadkutter-9ad8153d331273259d584efc72145acd71a8485a.tar.gz
kutter-9ad8153d331273259d584efc72145acd71a8485a.tar.xz
kutter-9ad8153d331273259d584efc72145acd71a8485a.zip
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>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 57a5e9ae..8324eebc 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -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)