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:
commit
f2785b7267
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue