summaryrefslogtreecommitdiffhomepage
path: root/digital/asserv/src/asserv
diff options
context:
space:
mode:
Diffstat (limited to 'digital/asserv/src/asserv')
-rw-r--r--digital/asserv/src/asserv/aux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/digital/asserv/src/asserv/aux.c b/digital/asserv/src/asserv/aux.c
index 18257be5..c300e3f3 100644
--- a/digital/asserv/src/asserv/aux.c
+++ b/digital/asserv/src/asserv/aux.c
@@ -199,6 +199,7 @@ aux_traj_find_limit (struct aux_t *aux)
pos_reset (aux->speed->pos);
aux->speed->cur = 0;
aux->state->mode = MODE_PWM;
+ aux->state->variant = 0;
pwm_set (aux->pwm, 0);
aux->pos = 0;
aux->traj_mode = AUX_TRAJ_DONE;