mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Fix bug that allowed arming craft before gyro calibration completed
This commit is contained in:
parent
febf80915f
commit
ec3d85ae92
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ void updateAutotuneState(void)
|
|||
bool isCalibrating()
|
||||
{
|
||||
#ifdef BARO
|
||||
if (sensors(SENSOR_ACC) && !isBaroCalibrationComplete()) {
|
||||
return false;
|
||||
if (sensors(SENSOR_BARO) && !isBaroCalibrationComplete()) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue