Merge pull request #7937 from TonyBlit/altitude_alarm_fix

Avoid altitude to blink if its value exceeds the alarm threshold when…
This commit is contained in:
Michael Keller 2019-04-09 21:57:12 +12:00 committed by GitHub
commit 2b79f2b1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1559,7 +1559,7 @@ void osdUpdateAlarms(void)
CLR_BLINK(OSD_REMAINING_TIME_ESTIMATE);
}
if (alt >= osdConfig()->alt_alarm) {
if ((alt >= osdConfig()->alt_alarm) && ARMING_FLAG(ARMED)) {
SET_BLINK(OSD_ALTITUDE);
} else {
CLR_BLINK(OSD_ALTITUDE);