summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
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 ();
}
}