1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

Add SmartPort master (#993)

This commit is contained in:
Michel Pastor 2020-09-04 09:15:13 +02:00 committed by GitHub
parent 442821e1ba
commit f76c83801d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -911,6 +911,9 @@
"portsFunction_TELEMETRY_SMARTPORT": {
"message": "SmartPort"
},
"portsFunction_SMARTPORT_MASTER": {
"message": "SmartPort Master"
},
"portsFunction_RX_SERIAL": {
"message": "Serial RX"
},

View file

@ -42,6 +42,7 @@ var mspHelper = (function (gui) {
'GSM_SMS': 19,
'FRSKY_OSD': 20,
'DJI_FPV': 21,
'SMARTPORT_MASTER': 23,
};
// Required for MSP_DEBUGMSG because console.log() doesn't allow omitting

View file

@ -93,6 +93,12 @@ TABS.ports.initialize = function (callback) {
maxPorts: 1 }
);
functionRules.push({
name: 'SMARTPORT_MASTER',
groups: ['peripherals'],
maxPorts: 1 }
);
for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
}