diff --git a/locales/en/messages.json b/locales/en/messages.json index 381ee542..f02ee7e8 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -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." diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index f305ac62..d0295e78 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -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() {