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:
parent
442821e1ba
commit
f76c83801d
3 changed files with 10 additions and 0 deletions
|
@ -911,6 +911,9 @@
|
|||
"portsFunction_TELEMETRY_SMARTPORT": {
|
||||
"message": "SmartPort"
|
||||
},
|
||||
"portsFunction_SMARTPORT_MASTER": {
|
||||
"message": "SmartPort Master"
|
||||
},
|
||||
"portsFunction_RX_SERIAL": {
|
||||
"message": "Serial RX"
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue