summaryrefslogtreecommitdiff
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-21 23:56:26 +0200
committerJérémy Dufour2008-04-21 23:56:26 +0200
commit94f06205a8a95bc9b03109329d84410967ba12b4 (patch)
tree86a1ca17c097b3504b0a6c7fcba516725fb31661 /digital/io/src/main.c
parentb814bc2ab370832431d3fa659521949482aa2180 (diff)
* digital/io/src
- resetting of asserv parameters is now a separate state in order to get the acknowledge from the asserv board ; - integrate the handle of this event into the main loop.
Diffstat (limited to 'digital/io/src/main.c')
-rw-r--r--digital/io/src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/digital/io/src/main.c b/digital/io/src/main.c
index 1be36985..f9f7664a 100644
--- a/digital/io/src/main.c
+++ b/digital/io/src/main.c
@@ -42,6 +42,7 @@
#include "fsm.h" /* fsm_* */
#include "giboulee.h" /* team_color */
#include "getsamples.h" /* getsamples_start */
+#include "top.h" /* top_* */
#include "io.h"
@@ -148,6 +149,11 @@ main_loop (void)
fsm_handle_event (&top_fsm, switch_get_jack () ?
TOP_EVENT_jack_removed_from_bot :
TOP_EVENT_jack_inserted_into_bot);
+ /* Settings acknowledge */
+ if (top_generate_settings_ack_event ())
+ {
+ fsm_handle_event (&top_fsm, TOP_EVENT_settings_acknowledged);
+ }
/* TODO: Check other sensors */
}
}