1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 06:45:12 +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

@ -1825,9 +1825,13 @@ TABS.pid_tuning.updateFilterWarning = function() {
} else {
warning_e.hide();
}
if (FEATURE_CONFIG.features.isEnabled('DYNAMIC_FILTER')) {
warningDynamicNotch_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.show();
warningDynamicNotch_e.hide();
}
}