mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 08:45:28 +03:00
Reinstate warning support.
This commit is contained in:
parent
9acd560c78
commit
7366b00292
2 changed files with 12 additions and 0 deletions
|
@ -3961,6 +3961,12 @@
|
|||
"osdWarningGpsRescueDisabled": {
|
||||
"message": "Warns when GPS Rescue is disabled"
|
||||
},
|
||||
"osdWarningRSSI": {
|
||||
"message": "Warns when RSSI is below alarm setting"
|
||||
},
|
||||
"osdWarningLinkQuality": {
|
||||
"message": "Warns when Link Quality is below alarm setting"
|
||||
},
|
||||
|
||||
"osdSectionHelpElements": {
|
||||
"message": "Enable or disable OSD elements."
|
||||
|
|
|
@ -1372,6 +1372,12 @@ OSD.chooseFields = function () {
|
|||
F.GPS_RESCUE_DISABLED
|
||||
]);
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
|
||||
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
|
||||
F.RSSI,
|
||||
F.LINK_QUALITY
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
||||
OSD.updateDisplaySize = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue