1
0
Fork 0
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:
Ian Murphy 2019-04-15 15:13:24 +01:00
parent 9acd560c78
commit 7366b00292
2 changed files with 12 additions and 0 deletions

View file

@ -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."

View file

@ -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 () {