1
0
Fork 0
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:
IvoFPV 2019-08-11 11:40:40 +02:00
parent 065d7176f3
commit dcfb587302
2 changed files with 8 additions and 4 deletions

View file

@ -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"

View file

@ -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();
}
}