From fe8764911d5f11e993a979f3ff347e739bb6e83a Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Thu, 21 May 2009 17:55:39 +0200 Subject: * digital/io/src: - use the last moving direction rather than the current one (this will not bug anymore when we are not moving). --- digital/io/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/io') diff --git a/digital/io/src/main.c b/digital/io/src/main.c index fdfd7e8d..d7c8a870 100644 --- a/digital/io/src/main.c +++ b/digital/io/src/main.c @@ -305,7 +305,7 @@ main_event_to_fsm (void) } /* Sharps event for move FSM */ /* Get the current direction of the bot */ - uint8_t moving_direction = asserv_get_moving_direction (); + uint8_t moving_direction = asserv_get_last_moving_direction (); /* If we are moving */ if (moving_direction) { -- cgit v1.2.3