mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
Merge pull request #998 from McGiverGim/bf-add_osd_warning_esc_fail
Add OSD_WARNING_ESC_FAIL
This commit is contained in:
commit
d0ce8869a0
2 changed files with 13 additions and 0 deletions
|
@ -1011,7 +1011,12 @@ OSD.constants = {
|
|||
CRASH_FLIP_MODE: {
|
||||
name: 'CRASH_FLIP_MODE',
|
||||
desc: 'osdWarningCrashFlipMode'
|
||||
},
|
||||
ESC_FAIL: {
|
||||
name: 'OSD_WARNING_ESC_FAIL',
|
||||
desc: 'osdWarningEscFail'
|
||||
}
|
||||
|
||||
},
|
||||
FONT_TYPES: [
|
||||
{ file: "default", name: "Default" },
|
||||
|
@ -1184,6 +1189,11 @@ OSD.chooseFields = function () {
|
|||
F.VISUAL_BEEPER,
|
||||
F.CRASH_FLIP_MODE
|
||||
];
|
||||
if (semver.gte(CONFIG.apiVersion, "1.39.0")) {
|
||||
OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([
|
||||
F.ESC_FAIL
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
||||
OSD.updateDisplaySize = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue