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.10.8-maintenance
parent
4c22f6e8c0
commit
56fec5cbec
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue