From c28f285dd77bf2336978727c93ebb9e33a6629b9 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Thu, 13 Jun 2019 15:38:02 +0200 Subject: [PATCH] Add RSSI dBm warning to the OSD --- locales/en/messages.json | 3 +++ src/js/tabs/osd.js | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index a92e27c2..66bfbf3c 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -4379,6 +4379,9 @@ "osdWarningLinkQuality": { "message": "Warns when Link Quality is below alarm setting" }, + "osdWarningRssiDbm": { + "message": "Warns when RSSI dBm value is below alarm setting" + }, "osdSectionHelpElements": { "message": "Enable or disable OSD elements." diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 8324612d..3f57ff19 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -1258,6 +1258,11 @@ OSD.constants = { name: 'LINK_QUALITY', desc: 'osdWarningLinkQuality' }, + RSSI_DBM: { + name: 'RSSI_DBM', + desc: 'osdWarningRssiDbm' + }, + }, FONT_TYPES: [ { file: "default", name: "Default" }, @@ -1543,7 +1548,8 @@ OSD.chooseFields = function () { ]); OSD.constants.WARNINGS = OSD.constants.WARNINGS.concat([ F.RSSI, - F.LINK_QUALITY + F.LINK_QUALITY, + F.RSSI_DBM, ]); } };