summaryrefslogtreecommitdiff
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-14 11:59:50 +0200
committerJérémy Dufour2008-04-14 11:59:50 +0200
commit344378dbe88fef666e0577cdbf57498f3800172f (patch)
treea26f5108ccae90afb0f7825f7ef02a90c291267b /digital/io/src/main.c
parent866e9ecb695b0a797ee7854cd3113abcd04ded6f (diff)
* digital/io/src
- manage command retransmission (when not acknowledge by the asserv) ; - integrate retransmission and update of the asserv into the main.
Diffstat (limited to 'digital/io/src/main.c')
-rw-r--r--digital/io/src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/digital/io/src/main.c b/digital/io/src/main.c
index bab667e4..20eace93 100644
--- a/digital/io/src/main.c
+++ b/digital/io/src/main.c
@@ -93,8 +93,13 @@ main_loop (void)
/* Manage UART protocol */
proto_accept (uart0_getc ());
- /* Update TWI module to get new data */
- // TODO
+ /* Update TWI module to get new data from the asserv board */
+ asserv_update_status ();
+
+ /* Is last command has been acknowledged? */
+ if (asserv_last_cmd_ack () == 0)
+ /* Called function to manage retransmission */
+ asserv_retransmit ();
}
}