From 45db79509071ad337a3ef297568b04ee6626aaa2 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 10 May 2010 23:54:47 +0200 Subject: digital/mimot/src/dirty: fix ABS on unsigned value --- digital/mimot/src/dirty/aux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/mimot/src') 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; -- cgit v1.2.3