Skip to content

Commit 35c2ba2

Browse files
authored
Update ports.js
1 parent bb1d400 commit 35c2ba2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tabs/ports.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
3333
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
3434
functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 });
3535
functionRules.push({ name: 'TBS_SMARTAUDIO', groups: ['peripherals'], maxPorts: 1 });
36+
}
37+
38+
if (semver.gte(CONFIG.apiVersion, "1.28.0")) {
3639
functionRules.push({ name: 'IRC_TRAMP', groups: ['peripherals'], maxPorts: 1 });
3740
}
38-
3941
for (var i = 0; i < functionRules.length; i++) {
4042
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
4143
}

0 commit comments

Comments
 (0)