Merge pull request #998 from McGiverGim/bf-add_osd_warning_esc_fail

Add OSD_WARNING_ESC_FAIL
10.3.x-maintenance
Michael Keller 2018-04-05 02:15:25 +12:00 committed by GitHub
commit d0ce8869a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -3317,6 +3317,9 @@
"osdWarningCrashFlipMode": {
"message": "Warns when flip over after crash mode is activated"
},
"osdWarningEscFail": {
"message": "Enumerates a list with the ESCs/motors that are failing (RPM or temperature are out of the configured threshold)"
},
"osdSectionHelpElements": {
"message": "Enable or disable OSD elements."

View File

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