aboutsummaryrefslogtreecommitdiffstats
path: root/src/stepper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stepper.c')
-rw-r--r--src/stepper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stepper.c b/src/stepper.c
index 57b0dd93..8da71e84 100644
--- a/src/stepper.c
+++ b/src/stepper.c
@@ -238,6 +238,7 @@ void
stepper_stop(struct stepper *s)
{
sched_del_timer(&s->time);
+ s->next_step_time = 0;
s->position = -stepper_get_position(s);
s->count = 0;
s->flags &= SF_INVERT_STEP;