]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robofsm: Add missing things for act FSM
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 1 Apr 2009 15:28:03 +0000 (17:28 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 1 Apr 2009 15:29:14 +0000 (17:29 +0200)
Not existing of act FSM caused that the applications did not exit on
Ctrl-C.

src/robofsm/robot.c
src/robofsm/robot.h

index 08553fb98eb6ede5a61d253e64ce5284e59c6355..9f49d2986c7956a2407b9b4a318cc3475e8fbe4b 100644 (file)
@@ -202,6 +202,7 @@ void robot_exit()
        fsm_exit(&robot.fsm.main);
        fsm_exit(&robot.fsm.motion);
        fsm_exit(&robot.fsm.display);
+       fsm_exit(&robot.fsm.act);
 }
 
 /** 
index a7bf79b51bb6a6000a572dee9e9d99d33a798f56..ceaac6fe4c6e8eeed14527f61ed7dcbd3164aca0 100644 (file)
@@ -53,6 +53,7 @@ enum robot_state {
 #define ROBOT_FSM_MAIN main
 #define ROBOT_FSM_MOTION motion
 #define ROBOT_FSM_DISPLAY display
+#define ROBOT_FSM_ACT act
 
 #define FSM_GET_BY_ID(fsm_id) (&robot.fsm.ROBOT_FSM_##fsm_id)