mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Merge pull request #2369 from bobbycisneros/master
Added OSD Up/Down reference element
This commit is contained in:
commit
d600bbab61
2 changed files with 17 additions and 1 deletions
|
@ -1181,6 +1181,15 @@ OSD.loadDisplayFields = function() {
|
|||
positionable: true,
|
||||
preview: "#9876",
|
||||
},
|
||||
OSD_UP_DOWN_REFERENCE: {
|
||||
name: 'OSD_UP_DOWN_REFERENCE',
|
||||
text: 'osdTextElementUpDownReference',
|
||||
desc: 'osdDescUpDownReference',
|
||||
defaultPosition: 238,
|
||||
draw_order: 465,
|
||||
positionable: true,
|
||||
preview: 'U',
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1602,6 +1611,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.OSD_UP_DOWN_REFERENCE,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue