1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Add OSD_WARNING_ESC_FAIL

This commit is contained in:
Miguel Angel Mulero Martinez 2018-04-03 19:19:49 +02:00
parent dede17f1dd
commit 37a5cd0081
2 changed files with 13 additions and 0 deletions

View file

@ -1007,7 +1007,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" },
@ -1175,6 +1180,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() {