Merge pull request #4109 from mikeller/fix_gyro_cal_on_first_arm_beeps

Fixed beeping for 'gyro_cal_on_first_arm'.
This commit is contained in:
Martin Budden 2017-09-10 07:09:39 +01:00 committed by GitHub
commit f2785b7267
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ STATIC_UNIT_TESTED void performGyroCalibration(gyroSensor_t *gyroSensor, uint8_t
if (isOnFinalGyroCalibrationCycle(&gyroSensor->calibration)) {
schedulerResetTaskStatistics(TASK_SELF); // so calibration cycles do not pollute tasks statistics
if (!firstArmingCalibrationWasStarted || !isArmingDisabled()) {
if (!firstArmingCalibrationWasStarted || (getArmingDisableFlags() & ~ARMING_DISABLED_CALIBRATING) == 0) {
beeper(BEEPER_GYRO_CALIBRATED);
}
}