From 65227170d8f63f11080d72d8c792a6a7294e87e7 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 28 Apr 2008 12:18:37 +0200 Subject: * digital/io/src - make the move FSM tell the top one it has finished. --- digital/io/src/move_cb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'digital/io/src') diff --git a/digital/io/src/move_cb.c b/digital/io/src/move_cb.c index 2c17927f..dbbc637e 100644 --- a/digital/io/src/move_cb.c +++ b/digital/io/src/move_cb.c @@ -13,6 +13,8 @@ #include "playground.h" #include "move.h" +#include "main.h" /* main_post_event_for_top_fsm */ + /* * GO_AWAY =bot_move_succeed=> * position_intermediary => GO_AWAY @@ -153,6 +155,7 @@ move__DESIRED_POSITION__bot_move_failed (void) fsm_branch_t move__DESIRED_POSITION__bot_move_succeed (void) { + main_post_event_for_top_fsm = TOP_EVENT_move_fsm_finished; return move_next (DESIRED_POSITION, bot_move_succeed); } -- cgit v1.2.3