mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 23:05:15 +03:00
Change notice and add api version check
This commit is contained in:
parent
065d7176f3
commit
dcfb587302
2 changed files with 8 additions and 4 deletions
|
@ -3127,7 +3127,7 @@
|
|||
"message": "Dynamic Notch Filter tracks peak motors noise frequency and places one or two notch filters with their center at that frequency."
|
||||
},
|
||||
"pidTuningDynamicNotchFilterDisabledWarning": {
|
||||
"message": "<span class=\"message-negative\">Warning:</span> Dynamic Notch Filter is disabled, please enable it as a feature in the Configuration tab to show related settings."
|
||||
"message": "<strong>Notice:</strong> The dynamic notch filter is disabled. In order to configure and use it, please enable the 'DYNAMIC_FILTER' feature in the 'Other Features' section of the 'Configuration' tab."
|
||||
},
|
||||
"pidTuningDynamicNotchRange": {
|
||||
"message": "Dynamic Notch Filter Range"
|
||||
|
|
|
@ -1825,9 +1825,13 @@ TABS.pid_tuning.updateFilterWarning = function() {
|
|||
} else {
|
||||
warning_e.hide();
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
|
||||
if (FEATURE_CONFIG.features.isEnabled('DYNAMIC_FILTER')) {
|
||||
warningDynamicNotch_e.hide();
|
||||
} else {
|
||||
warningDynamicNotch_e.show();
|
||||
}
|
||||
} else {
|
||||
warningDynamicNotch_e.hide();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue