1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Merge pull request #3395 from AndersHoglund/fix_SITL_build

Fix SITL compile. Merging this myself as it is absolutely needed on Jenkins or any env running a more recent tool chain than Trusty/14.04 (Travis, Vagrant , etc). No 3.2 CI build binaries would otherwise be available as long as SITL errors the whole build.
This commit is contained in:
Anders Höglund 2017-07-01 10:43:54 +02:00 committed by GitHub
commit c75697ef34

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