summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/guybrush/bottom_clamp.c
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-15 16:00:05 +0200
committerNicolas Schodet2012-05-15 16:05:05 +0200
commitb1959555b08160d906e8514ed2db1c6fd56a8582 (patch)
tree94607da6a00dde6469452b529a99d180666b63f0 /digital/io-hub/src/guybrush/bottom_clamp.c
parent6dc392367d3d7c647ad48c66d0a90ac97127a50f (diff)
digital/io-hub/src/guybrush: add global demo mode flag
Diffstat (limited to 'digital/io-hub/src/guybrush/bottom_clamp.c')
-rw-r--r--digital/io-hub/src/guybrush/bottom_clamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io-hub/src/guybrush/bottom_clamp.c b/digital/io-hub/src/guybrush/bottom_clamp.c
index f23d929d..0fb1e24b 100644
--- a/digital/io-hub/src/guybrush/bottom_clamp.c
+++ b/digital/io-hub/src/guybrush/bottom_clamp.c
@@ -304,7 +304,7 @@ FSM_TRANS (CLAMP_INIT_HIDE_CLAMP, lower_clamp_rotation_success,
demo_start,CLAMP_GOING_IDLE)
{
/*Looking if we are in demo mode or normal mode*/
- if (IO_GET(CONTACT_STRAT))
+ if (!main_demo)
return FSM_NEXT (CLAMP_INIT_HIDE_CLAMP,lower_clamp_rotation_success,normal_start);
else
return FSM_NEXT (CLAMP_INIT_HIDE_CLAMP,lower_clamp_rotation_success,demo_start);