File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,12 @@ pid_tuning.initialize = function (callback) {
16871687 const throttleLimitTypeE = $ ( '.throttle_limit select[id="throttleLimitType"]' ) ;
16881688 const mid = parseFloat ( throttleMidE . val ( ) ) ; // Value 0-1
16891689 const expo = parseFloat ( throttleExpoE . val ( ) ) ; // Value 0-1
1690- const hover = parseFloat ( throttleHoverE . val ( ) ) ; // Value 0-1 (hover throttle %)
1690+
1691+ // Hover parameter is only available from 1.47 so use mid value for older versions
1692+ const hover = semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_47 )
1693+ ? parseFloat ( throttleHoverE . val ( ) )
1694+ : mid ;
1695+
16911696 const throttleLimitPercent = parseInt ( throttleLimitPercentE . val ( ) ) / 100 ; // Value 0-1
16921697 const throttleLimitType = parseInt ( throttleLimitTypeE . val ( ) ) ;
16931698 const throttleCurve = $ ( ".throttle .throttle_curve canvas" ) . get ( 0 ) ;
You can’t perform that action at this time.
0 commit comments