summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-21 04:38:35 +0200
committerJérémy Dufour2009-05-21 04:38:35 +0200
commit22bd5d65a99e43c5292f4cece8575b2bca1db89a (patch)
tree5083ecaa1126d00809118938b2c25d856462e7c2
parent23652b839ccdf5390bda08dc2a01825c8aec69ae (diff)
* digital/io/src:
- start at the correct index of the distributor list.
-rw-r--r--digital/io/src/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index 718e1e74..afc77185 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -91,7 +91,7 @@ top_get_next_position_to_get_distributor (asserv_position_t *clean_position,
/* Maximum number of remaining puck by distributor. */
static uint8_t distributor_puck_count[DISTRIBUTOR_COUNT] = { 5, 5, 5 };
/* Current distributor. */
- static uint8_t current_position = DISTRIBUTOR_COUNT ;
+ static uint8_t current_position = DISTRIBUTOR_COUNT - 1;
/* Keep track of how many pucks we have get. This variable will be used to
* know how many puck were taken for each distributor. */
static uint8_t previous_total_puck_taken = 0;