Commit 65898501 authored by Pawel Spychalski (DzikuVx)'s avatar Pawel Spychalski (DzikuVx)
Browse files

Secdondary IMU2 port function

parent 620694a3
......@@ -1043,6 +1043,9 @@
"portsFunction_DJI_FPV": {
"message": "DJI FPV VTX"
},
"portsFunction_IMU2": {
"message": "Secondary IMU"
},
"pidTuningName": {
"message": "Name"
},
......
......@@ -43,6 +43,7 @@ var mspHelper = (function (gui) {
'FRSKY_OSD': 20,
'DJI_FPV': 21,
'SMARTPORT_MASTER': 23,
'IMU2': 24,
};
// Required for MSP_DEBUGMSG because console.log() doesn't allow omitting
......
......@@ -99,6 +99,12 @@ TABS.ports.initialize = function (callback) {
maxPorts: 1 }
);
functionRules.push({
name: 'IMU2',
groups: ['peripherals'],
maxPorts: 1 }
);
for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment