mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 14:55:15 +03:00
Add support for the 'mah capacity exceeded' osd warning
This commit is contained in:
parent
2925646d82
commit
eb8a50016f
2 changed files with 17 additions and 0 deletions
|
@ -1332,6 +1332,11 @@ OSD.constants = {
|
|||
text: 'osdWarningTextRssiDbm',
|
||||
desc: 'osdWarningRssiDbm'
|
||||
},
|
||||
OVER_CAP: {
|
||||
name: 'OVER_CAP',
|
||||
text: 'osdWarningTextOverCap',
|
||||
desc: 'osdWarningOverCap',
|
||||
},
|
||||
|
||||
},
|
||||
FONT_TYPES: [
|
||||
|
@ -1628,6 +1633,11 @@ OSD.chooseFields = function () {
|
|||
F.RSSI_DBM,
|
||||
]);
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
|
||||
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
|
||||
F.OVER_CAP,
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
||||
OSD.updateDisplaySize = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue