From 22bd5d65a99e43c5292f4cece8575b2bca1db89a Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Thu, 21 May 2009 04:38:35 +0200 Subject: * digital/io/src: - start at the correct index of the distributor list. --- digital/io/src/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/io') 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; -- cgit v1.2.3