From b1959555b08160d906e8514ed2db1c6fd56a8582 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 15 May 2012 16:00:05 +0200 Subject: digital/io-hub/src/guybrush: add global demo mode flag --- digital/io-hub/src/guybrush/bottom_clamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/io-hub/src/guybrush/bottom_clamp.c') 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); -- cgit v1.2.3