Skip to content

Commit

Permalink
Merge pull request #835 from iNavFlight/agh_frskyosd
Browse files Browse the repository at this point in the history
Add support for selecting FrSky OSD in the ports tab
  • Loading branch information
fiam authored Oct 17, 2019
2 parents 942a2fd + 0e47a84 commit 3b9e12a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,9 @@
"portsFunction_VTX_FFPV": {
"message": "FuriousFPV Vtx"
},
"portsFunction_FRSKY_OSD": {
"message": "FrSky OSD"
},
"pidTuningName": {
"message": "Name"
},
Expand Down
1 change: 1 addition & 0 deletions js/msp/MSPHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions tabs/ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3b9e12a

Please sign in to comment.