From 94f06205a8a95bc9b03109329d84410967ba12b4 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 21 Apr 2008 23:56:26 +0200 Subject: * 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. --- digital/io/src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'digital/io/src/main.c') 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 */ } } -- cgit v1.2.3