1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Fix SITL compile.

This commit is contained in:
Anders Hoglund 2017-06-30 15:34:08 +02:00
parent 740b4a91bd
commit 08281e8ec9

View file

@ -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);
}