diff --git a/build/script.js b/build/script.js index 3e2a2521..851ff1e8 100644 --- a/build/script.js +++ b/build/script.js @@ -20735,7 +20735,7 @@ TABS.ports = {}; TABS.ports.initialize = function (callback, scrollPosition) { var board_definition = {}; - var isSupportPeripherals = semver.gte(CONFIG.apiVersion, "1.27.0"); + var isSupportPeripherals = semver.gte(CONFIG.flightControllerVersion, "1.7.3"); var functionRules = [ {name: 'MSP', groups: ['data', 'msp'], maxPorts: 2}, @@ -20859,7 +20859,6 @@ TABS.ports.initialize = function (callback, scrollPosition) { 31: 'SOFTSERIAL2' }; - // if apiVersion < 1.27.0, than remove the peripherals column if (!isSupportPeripherals) { $('.peripherls-column').remove(); $('.functionsCell-peripherals').remove(); diff --git a/tabs/ports.js b/tabs/ports.js index 22d41a8f..77c88e51 100644 --- a/tabs/ports.js +++ b/tabs/ports.js @@ -4,7 +4,7 @@ TABS.ports = {}; TABS.ports.initialize = function (callback, scrollPosition) { var board_definition = {}; - var isSupportPeripherals = semver.gte(CONFIG.apiVersion, "1.27.0"); + var isSupportPeripherals = semver.gte(CONFIG.flightControllerVersion, "1.7.3"); var functionRules = [ {name: 'MSP', groups: ['data', 'msp'], maxPorts: 2}, @@ -128,7 +128,6 @@ TABS.ports.initialize = function (callback, scrollPosition) { 31: 'SOFTSERIAL2' }; - // if apiVersion < 1.27.0, than remove the peripherals column if (!isSupportPeripherals) { $('.peripherls-column').remove(); $('.functionsCell-peripherals').remove();