mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
Auto merged - #2618 at Wed, 06 Oct 2021 12:17:10 GMT
Expert mode toggle bugfix and refactoring
This commit is contained in:
commit
3feefcb184
3 changed files with 16 additions and 7 deletions
|
@ -111,7 +111,7 @@ TuningSliders.initialize = function() {
|
|||
this.setDMinFeatureEnabled($('#dMinSwitch').is(':checked'));
|
||||
}
|
||||
|
||||
this.setExpertMode($('input[name="expertModeCheckbox"]').is(':checked'));
|
||||
this.setExpertMode(isExpertModeEnabled());
|
||||
|
||||
this.initPidSlidersPosition();
|
||||
this.initGyroFilterSliderPosition();
|
||||
|
@ -126,8 +126,8 @@ TuningSliders.initialize = function() {
|
|||
this.updateFilterSlidersDisplay();
|
||||
};
|
||||
|
||||
TuningSliders.setExpertMode = function() {
|
||||
this.expertMode = isExpertModeEnabled();
|
||||
TuningSliders.setExpertMode = function(expertModeEnabled) {
|
||||
this.expertMode = expertModeEnabled;
|
||||
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
document.getElementById('sliderDMaxGain').disabled = !this.expertMode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue