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:
parent
4c22f6e8c0
commit
56fec5cbec
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue