summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--digital/mimot/src/dirty/aux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/mimot/src/dirty/aux.c b/digital/mimot/src/dirty/aux.c
index 19268dd0..c11bdf7c 100644
--- a/digital/mimot/src/dirty/aux.c
+++ b/digital/mimot/src/dirty/aux.c
@@ -106,8 +106,8 @@ aux_traj_goto (struct aux_t *aux)
aux->speed->pos_cons -= 250;
aux->wait = 225 / 2;
}
- else if (UTILS_ABS (aux->speed->pos_cons - aux->speed->pos->cur)
- < 300)
+ else if (UTILS_ABS ((int32_t) (aux->speed->pos_cons -
+ aux->speed->pos->cur)) < 300)
{
aux->traj_mode = AUX_TRAJ_DONE;
aux->state->variant = 0;