summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-24 23:47:40 +0200
committerJérémy Dufour2008-04-24 23:47:40 +0200
commit4d88c551ef61836af59f86ca1dd41c47ed2ead9a (patch)
tree54816330083f6340665b565ac34b3276ee0bb1dc /digital/io/src/getsamples_cb.c
parent457485aebff5c6bbe9e4075dd0f61bbafa9dc8d9 (diff)
* digital/io/src
- when a sub FSM finished, it posts an event for the top FSM which will be notified in the next main loop iteration (rather than the actual one).
Diffstat (limited to 'digital/io/src/getsamples_cb.c')
-rw-r--r--digital/io/src/getsamples_cb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/io/src/getsamples_cb.c b/digital/io/src/getsamples_cb.c
index cb598a16..48b3a520 100644
--- a/digital/io/src/getsamples_cb.c
+++ b/digital/io/src/getsamples_cb.c
@@ -32,6 +32,7 @@
#include "giboulee.h" /* BOT_ */
#include "playground.h" /* PG_* */
+#include "main.h" /* main_post_event_for_top_fsm */
#include "io.h"
@@ -116,7 +117,7 @@ fsm_branch_t
getsamples__CLOSE_INPUT_HOLE__arm_move_succeed (void)
{
/* Tell the top FSM we have finished */
- fsm_handle_event (&top_fsm, TOP_EVENT_get_samples_fsm_finished);
+ main_post_event_for_top_fsm = TOP_EVENT_get_samples_fsm_finished + 1;
return getsamples_next (CLOSE_INPUT_HOLE, arm_move_succeed);
}