From 56fec5cbec73bdae4cb6a97120e4e4d694a20b19 Mon Sep 17 00:00:00 2001 From: Robert Cisneros Date: Sat, 13 Feb 2021 22:25:47 -0600 Subject: [PATCH] Code correction to OSD_UP_DOWN_REFERENCE logic. Corrected OSD_UP_DOWN_REFERENCE label to be consistent with Betaflight. Simplified preview logic to show symbol centered. --- src/js/tabs/osd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index f96eb1b5..b87a3efc 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -1181,8 +1181,8 @@ OSD.loadDisplayFields = function() { positionable: true, preview: "#9876", }, - UP_DOWN_REFERENCE: { - name: 'UP_DOWN_REFERENCE', + OSD_UP_DOWN_REFERENCE: { + name: 'OSD_UP_DOWN_REFERENCE', text: 'osdTextElementUpDownReference', desc: 'osdDescUpDownReference', defaultPosition() { @@ -1194,7 +1194,7 @@ OSD.loadDisplayFields = function() { }, draw_order: 465, positionable: true, - preview: 'U', + preview: 'U' }, }; }; @@ -1617,7 +1617,7 @@ OSD.chooseFields = function() { if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) { OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ F.TOTAL_FLIGHTS, - F.UP_DOWN_REFERENCE, + F.OSD_UP_DOWN_REFERENCE, ]); } }