File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -405,14 +405,6 @@ TuningSliders.updatePidSlidersDisplay = function() {
405405 } ) ;
406406 } ) ;
407407
408- if ( $ ( 'input[id="useIntegratedYaw"]' ) . is ( ':checked' ) ) {
409- this . pidSlidersUnavailable = true ;
410- if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_44 ) ) {
411- this . sliderPidsMode = 0 ;
412- $ ( '#pid_main .pid_data input' ) . prop ( 'disabled' , false ) ;
413- }
414- }
415-
416408 if ( ! this . pidSlidersUnavailable ) {
417409 this . cachedPidSliderValues = true ;
418410 }
Original file line number Diff line number Diff line change @@ -547,6 +547,10 @@ TABS.pid_tuning.initialize = function (callback) {
547547
548548 $ ( 'input[id="useIntegratedYaw"]' ) . change ( function ( ) {
549549 const checked = $ ( this ) . is ( ':checked' ) ;
550+ if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_44 ) ) {
551+ this . sliderPidsMode = 0 ;
552+ }
553+ $ ( '#pid_main .pid_data input' ) . prop ( 'disabled' , ! checked ) ;
550554 $ ( '#pidTuningIntegratedYawCaution' ) . toggle ( checked ) ;
551555 } ) . change ( ) ;
552556
You can’t perform that action at this time.
0 commit comments