@@ -13,7 +13,6 @@ TABS.ports.initialize = function (callback, scrollPosition) {
1313 { name : 'TELEMETRY_FRSKY' , groups : [ 'telemetry' ] , sharableWith : [ 'msp' ] , notSharableWith : [ 'blackbox' ] , maxPorts : 1 } ,
1414 { name : 'TELEMETRY_HOTT' , groups : [ 'telemetry' ] , sharableWith : [ 'msp' ] , notSharableWith : [ 'blackbox' ] , maxPorts : 1 } ,
1515 { name : 'TELEMETRY_SMARTPORT' , groups : [ 'telemetry' ] , maxPorts : 1 } ,
16- { name : 'TELEMETRY_ESC' , groups : [ 'telemetry' ] , maxPorts : 1 } ,
1716 { name : 'RX_SERIAL' , groups : [ 'rx' ] , maxPorts : 1 } ,
1817 { name : 'BLACKBOX' , groups : [ 'logging' , 'blackbox' ] , sharableWith : [ 'msp' ] , notSharableWith : [ 'telemetry' ] , maxPorts : 1 } ,
1918 ] ;
@@ -31,6 +30,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
3130 functionRules . push ( mavlinkFunctionRule ) ;
3231 }
3332
33+ if ( semver . gte ( CONFIG . flightControllerVersion , "3.1.0" ) ) {
34+ var escTlmFunctionRule = { name : 'TELEMETRY_ESC' , groups : [ 'telemetry' ] , maxPorts : 1 } ;
35+ functionRules . push ( escTlmFunctionRule ) ;
36+ }
37+
3438 for ( var i = 0 ; i < functionRules . length ; i ++ ) {
3539 functionRules [ i ] . displayName = chrome . i18n . getMessage ( 'portsFunction_' + functionRules [ i ] . name ) ;
3640 }
0 commit comments