Fix bug that allowed arming craft before gyro calibration completed

This commit is contained in:
Nicholas Sherlock 2015-01-26 16:56:23 +13:00
parent febf80915f
commit ec3d85ae92
1 changed files with 2 additions and 2 deletions

View File

@ -151,8 +151,8 @@ void updateAutotuneState(void)
bool isCalibrating() bool isCalibrating()
{ {
#ifdef BARO #ifdef BARO
if (sensors(SENSOR_ACC) && !isBaroCalibrationComplete()) { if (sensors(SENSOR_BARO) && !isBaroCalibrationComplete()) {
return false; return true;
} }
#endif #endif