summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/common-cc/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io-hub/src/common-cc/init.cc')
-rw-r--r--digital/io-hub/src/common-cc/init.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/digital/io-hub/src/common-cc/init.cc b/digital/io-hub/src/common-cc/init.cc
index 9b3ce7ab..692bae14 100644
--- a/digital/io-hub/src/common-cc/init.cc
+++ b/digital/io-hub/src/common-cc/init.cc
@@ -50,12 +50,14 @@ FSM_STATES (
INIT_FINDING_SECOND_WALL,
// Going away from the wall.
INIT_GOING_AWAY_SECOND_WALL,
-#ifdef INIT_START_POSITION_ANGLE
+#if !INIT_START_SECOND_WALL
+# ifdef INIT_START_POSITION_ANGLE
// Facing the start position.
INIT_FACING_START_POSITION,
-#endif
+# endif
// Going to start position.
INIT_GOING_TO_START_POSITION,
+#endif
// Waiting for the round start (waiting for the jack).
INIT_WAITING_SECOND_JACK_OUT,
// Initialisation finished, nothing else to do.