summaryrefslogtreecommitdiffhomepage
path: root/digital/mimot
diff options
context:
space:
mode:
authorNicolas Schodet2010-05-10 23:54:47 +0200
committerNicolas Schodet2010-05-10 23:54:47 +0200
commit45db79509071ad337a3ef297568b04ee6626aaa2 (patch)
tree22a79cfc964f1b0d9ce484776abc554cabec3dc0 /digital/mimot
parent66d15b98cf1ff311ef96a058be0ccdf668399738 (diff)
digital/mimot/src/dirty: fix ABS on unsigned value
Diffstat (limited to 'digital/mimot')
-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;