1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 04:45:18 +03:00

Add support for selecting FrSky OSD in the ports tab

This commit is contained in:
Alberto García Hierro 2019-09-26 09:47:30 +01:00
parent 383f7a2a41
commit 0e47a8415c
3 changed files with 12 additions and 0 deletions

View file

@ -918,6 +918,9 @@
"portsFunction_VTX_FFPV": {
"message": "FuriousFPV Vtx"
},
"portsFunction_FRSKY_OSD": {
"message": "FrSky OSD"
},
"pidTuningName": {
"message": "Name"
},

View file

@ -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

View file

@ -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);
}