From 08281e8ec95d6065783284b0ebab5090d8f84574 Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Fri, 30 Jun 2017 15:34:08 +0200 Subject: [PATCH] Fix SITL compile. --- src/main/fc/fc_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/fc/fc_init.c b/src/main/fc/fc_init.c index 7a4bb09c38..ff4bebf42c 100644 --- a/src/main/fc/fc_init.c +++ b/src/main/fc/fc_init.c @@ -478,8 +478,10 @@ void init(void) initBoardAlignment(boardAlignment()); if (!sensorsAutodetect()) { +#if !defined(SITL) // if gyro was not detected due to whatever reason, notify and don't arm. failureLedCode(FAILURE_MISSING_ACC, 2); +#endif setArmingDisabled(ARMING_DISABLED_NO_GYRO); }