Merge pull request #998 from McGiverGim/bf-add_osd_warning_esc_fail
Add OSD_WARNING_ESC_FAIL10.3.x-maintenance
commit
d0ce8869a0
|
@ -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."
|
||||
|
|
|
@ -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…
Reference in New Issue