summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/move_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-25 00:20:37 +0200
committerJérémy Dufour2008-04-25 00:20:37 +0200
commit82d914b99afc71562d6fa36bcc98528947657e37 (patch)
treef5b1032f8bed5ee8d8a9c0c19bcb905cb0fb6488 /digital/io/src/move_cb.c
parent4d88c551ef61836af59f86ca1dd41c47ed2ead9a (diff)
* digital/io/src
- ensure event is reset after being posted ; - use 0xFF value for not an event rather than 0 (it prevents the dirty fix to add 1 to the event).
Diffstat (limited to 'digital/io/src/move_cb.c')
-rw-r--r--digital/io/src/move_cb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io/src/move_cb.c b/digital/io/src/move_cb.c
index e7069c37..a54f9420 100644
--- a/digital/io/src/move_cb.c
+++ b/digital/io/src/move_cb.c
@@ -87,7 +87,7 @@ move__DESIRED_POSITION__blocked (void)
fsm_branch_t
move__DESIRED_POSITION__reached (void)
{
- main_post_event_for_top_fsm = TOP_EVENT_move_fsm_finished + 1;
+ main_post_event_for_top_fsm = TOP_EVENT_move_fsm_finished;
return move_next (DESIRED_POSITION, reached);
}