mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Merge pull request #1384 from ianrmurphy/add-rssi-lq-osd-warnings
Added support for RSSI & Link Quality warning settings
This commit is contained in:
commit
c68ec0b67f
2 changed files with 21 additions and 2 deletions
|
@ -1107,8 +1107,15 @@ OSD.constants = {
|
|||
GPS_RESCUE_DISABLED: {
|
||||
name: 'GPS_RESCUE_DISABLED',
|
||||
desc: 'osdWarningGpsRescueDisabled'
|
||||
}
|
||||
|
||||
},
|
||||
RSSI: {
|
||||
name: 'RSSI',
|
||||
desc: 'osdWarningRSSI'
|
||||
},
|
||||
LINK_QUALITY: {
|
||||
name: 'LINK_QUALITY',
|
||||
desc: 'osdWarningLinkQuality'
|
||||
},
|
||||
},
|
||||
FONT_TYPES: [
|
||||
{ file: "default", name: "Default" },
|
||||
|
@ -1365,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