mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Avoid altitude to blink if its value exceeds the alarm threshold when not armed, as it's showing altitude over sea level instead of flight altitude.
This commit is contained in:
parent
f67999f5d9
commit
16eda6e203
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue