summaryrefslogtreecommitdiff
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.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 */
}
}