Skip to content

Commit 56fec5c

Browse files
committed
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.
1 parent 4c22f6e commit 56fec5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/tabs/osd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,8 @@ OSD.loadDisplayFields = function() {
11811181
positionable: true,
11821182
preview: "#9876",
11831183
},
1184-
UP_DOWN_REFERENCE: {
1185-
name: 'UP_DOWN_REFERENCE',
1184+
OSD_UP_DOWN_REFERENCE: {
1185+
name: 'OSD_UP_DOWN_REFERENCE',
11861186
text: 'osdTextElementUpDownReference',
11871187
desc: 'osdDescUpDownReference',
11881188
defaultPosition() {
@@ -1194,7 +1194,7 @@ OSD.loadDisplayFields = function() {
11941194
},
11951195
draw_order: 465,
11961196
positionable: true,
1197-
preview: 'U',
1197+
preview: 'U'
11981198
},
11991199
};
12001200
};
@@ -1617,7 +1617,7 @@ OSD.chooseFields = function() {
16171617
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
16181618
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
16191619
F.TOTAL_FLIGHTS,
1620-
F.UP_DOWN_REFERENCE,
1620+
F.OSD_UP_DOWN_REFERENCE,
16211621
]);
16221622
}
16231623
}

0 commit comments

Comments
 (0)