From 344378dbe88fef666e0577cdbf57498f3800172f Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 14 Apr 2008 11:59:50 +0200 Subject: * digital/io/src - manage command retransmission (when not acknowledge by the asserv) ; - integrate retransmission and update of the asserv into the main. --- digital/io/src/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'digital/io/src/main.c') 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 (); } } -- cgit v1.2.3