From c9e8bae51d603f50f05e9c669707426542310453 Mon Sep 17 00:00:00 2001 From: mikeller Date: Sun, 10 Sep 2017 13:55:56 +1200 Subject: [PATCH] Fixed beeping for 'gyro_cal_on_first_arm'. --- src/main/sensors/gyro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 49bf26ab0..ccbf38abd 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -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); } }