mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fix SITL compile.
This commit is contained in:
parent
740b4a91bd
commit
08281e8ec9
1 changed files with 2 additions and 0 deletions
|
@ -478,8 +478,10 @@ void init(void)
|
||||||
initBoardAlignment(boardAlignment());
|
initBoardAlignment(boardAlignment());
|
||||||
|
|
||||||
if (!sensorsAutodetect()) {
|
if (!sensorsAutodetect()) {
|
||||||
|
#if !defined(SITL)
|
||||||
// if gyro was not detected due to whatever reason, notify and don't arm.
|
// if gyro was not detected due to whatever reason, notify and don't arm.
|
||||||
failureLedCode(FAILURE_MISSING_ACC, 2);
|
failureLedCode(FAILURE_MISSING_ACC, 2);
|
||||||
|
#endif
|
||||||
setArmingDisabled(ARMING_DISABLED_NO_GYRO);
|
setArmingDisabled(ARMING_DISABLED_NO_GYRO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue