From 37a5cd0081ca4eb8ed94b0d94104d23554a6716f Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Tue, 3 Apr 2018 19:19:49 +0200 Subject: [PATCH] Add OSD_WARNING_ESC_FAIL --- locales/en/messages.json | 3 +++ src/js/tabs/osd.js | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/locales/en/messages.json b/locales/en/messages.json index 2f724e25..c43c396d 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3312,6 +3312,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 bc06024d..2800f60a 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -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() {