From c1da87b7cfb0e75dbc49cfc1cea266e247718eb8 Mon Sep 17 00:00:00 2001 From: Bas Delfos Date: Sun, 30 Jul 2017 16:22:44 +0200 Subject: [PATCH] Removed check for BF 3.2 so this also works on BF 3.1.x --- tabs/pid_tuning.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 7ee5a652..25f114e6 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -292,15 +292,9 @@ TABS.pid_tuning.initialize = function (callback) { .attr('disabled', !checked); }); - if (semver.gte(CONFIG.apiVersion, "1.36.0")) { - $('input[id="gyroNotch1Enabled"]').prop('checked', FILTER_CONFIG.gyro_soft_notch_cutoff_1 != 0).change(); - $('input[id="gyroNotch2Enabled"]').prop('checked', FILTER_CONFIG.gyro_soft_notch_cutoff_2 != 0).change(); - $('input[id="dtermNotchEnabled"]').prop('checked', FILTER_CONFIG.dterm_notch_cutoff != 0).change(); - } else { - $('.switchGyroNotch1').hide(); - $('.switchGyroNotch2').hide(); - $('.switchDTermNotch').hide(); - } + $('input[id="gyroNotch1Enabled"]').prop('checked', FILTER_CONFIG.gyro_soft_notch_cutoff_1 != 0).change(); + $('input[id="gyroNotch2Enabled"]').prop('checked', FILTER_CONFIG.gyro_soft_notch_cutoff_2 != 0).change(); + $('input[id="dtermNotchEnabled"]').prop('checked', FILTER_CONFIG.dterm_notch_cutoff != 0).change(); } function form_to_pid_and_rc() {