Fix bug that allowed arming craft before gyro calibration completed
This commit is contained in:
parent
febf80915f
commit
ec3d85ae92
|
@ -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…
Reference in New Issue