Merge pull request #427 from sherlockflight/master

Fix bug that allowed arming craft before gyro calibration completed
This commit is contained in:
Dominic Clifton 2015-01-26 15:11:33 +01:00
commit 3555b6b79b
1 changed files with 2 additions and 2 deletions

View File

@ -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