mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
Add support for selecting FrSky OSD in the ports tab
This commit is contained in:
parent
383f7a2a41
commit
0e47a8415c
3 changed files with 12 additions and 0 deletions
|
@ -918,6 +918,9 @@
|
|||
"portsFunction_VTX_FFPV": {
|
||||
"message": "FuriousFPV Vtx"
|
||||
},
|
||||
"portsFunction_FRSKY_OSD": {
|
||||
"message": "FrSky OSD"
|
||||
},
|
||||
"pidTuningName": {
|
||||
"message": "Name"
|
||||
},
|
||||
|
|
|
@ -51,6 +51,7 @@ var mspHelper = (function (gui) {
|
|||
'VTX_FFPV': 17,
|
||||
'ESC': 18,
|
||||
'GSM_SMS': 19,
|
||||
'FRSKY_OSD': 20,
|
||||
};
|
||||
|
||||
// Required for MSP_DEBUGMSG because console.log() doesn't allow omitting
|
||||
|
|
|
@ -87,6 +87,14 @@ TABS.ports.initialize = function (callback) {
|
|||
);
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.2.2")) {
|
||||
functionRules.push({
|
||||
name: 'FRSKY_OSD',
|
||||
groups: ['peripherals'],
|
||||
maxPorts: 1 }
|
||||
);
|
||||
}
|
||||
|
||||
for (var i = 0; i < functionRules.length; i++) {
|
||||
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue