diff --git a/_locales/en/messages.json b/_locales/en/messages.json index f9a09e83..1f24e97f 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -822,6 +822,9 @@ "portsFunction_IRC_TRAMP": { "message": "IRC Tramp" }, + "portsFunction_TELEMETRY_IBUS": { + "message": "iBUS Telemetry" + }, "pidTuningUpgradeFirmwareToChangePidController": { "message": "Changing PID controller disabled - you can change it via the CLI. You have firmware with API version $1, but this functionality requires requires $2." }, diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index c3bfd482..37b8ee22 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -22,6 +22,7 @@ function MspHelper () { 'TELEMETRY_MAVLINK': 9, 'ESC_SENSOR': 10, 'TBS_SMARTAUDIO': 11, + 'TELEMETRY_IBUS': 12, 'IRC_TRAMP': 13 }; } diff --git a/tabs/ports.js b/tabs/ports.js index e941bb09..16979bf0 100644 --- a/tabs/ports.js +++ b/tabs/ports.js @@ -34,10 +34,15 @@ TABS.ports.initialize = function (callback, scrollPosition) { functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 }); functionRules.push({ name: 'TBS_SMARTAUDIO', groups: ['peripherals'], maxPorts: 1 }); } - + if (semver.gte(CONFIG.apiVersion, "1.27.0")) { functionRules.push({ name: 'IRC_TRAMP', groups: ['peripherals'], maxPorts: 1 }); } + + if (semver.gte(CONFIG.apiVersion, "1.32.0")) { + functionRules.push({ name: 'TELEMETRY_IBUS', groups: ['telemetry'], maxPorts: 1 }); + } + for (var i = 0; i < functionRules.length; i++) { functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name); }