1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 09:15:49 +03:00

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.
This commit is contained in:
Robert Cisneros 2021-02-13 22:25:47 -06:00
parent 4c22f6e8c0
commit 56fec5cbec

View file

@ -1181,8 +1181,8 @@ OSD.loadDisplayFields = function() {
positionable: true, positionable: true,
preview: "#9876", preview: "#9876",
}, },
UP_DOWN_REFERENCE: { OSD_UP_DOWN_REFERENCE: {
name: 'UP_DOWN_REFERENCE', name: 'OSD_UP_DOWN_REFERENCE',
text: 'osdTextElementUpDownReference', text: 'osdTextElementUpDownReference',
desc: 'osdDescUpDownReference', desc: 'osdDescUpDownReference',
defaultPosition() { defaultPosition() {
@ -1194,7 +1194,7 @@ OSD.loadDisplayFields = function() {
}, },
draw_order: 465, draw_order: 465,
positionable: true, positionable: true,
preview: 'U', preview: 'U'
}, },
}; };
}; };
@ -1617,7 +1617,7 @@ OSD.chooseFields = function() {
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) { if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.TOTAL_FLIGHTS, F.TOTAL_FLIGHTS,
F.UP_DOWN_REFERENCE, F.OSD_UP_DOWN_REFERENCE,
]); ]);
} }
} }