aboutsummaryrefslogtreecommitdiffstats
path: root/src/stepper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stepper.c')
-rw-r--r--src/stepper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stepper.c b/src/stepper.c
index 8356ff24..a296914d 100644
--- a/src/stepper.c
+++ b/src/stepper.c
@@ -86,7 +86,7 @@ stepper_load_next(struct stepper *s, uint32_t min_next_time)
} else {
s->time.waketime = s->next_step_time;
}
- s->count = m->count * 2;
+ s->count = (uint32_t)m->count * 2;
}
if (m->flags & MF_DIR) {
s->position = -s->position + m->count;