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:
commit
c75697ef34
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue