1
0
Fork 0
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:
Nicholas Sherlock 2015-01-26 16:56:23 +13:00
parent febf80915f
commit ec3d85ae92

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