From 41c828678893ee1604de5fdff95a956c93d8f5e7 Mon Sep 17 00:00:00 2001 From: Asizon <43983086+Asizon@users.noreply.github.com> Date: Wed, 17 Jun 2020 21:52:59 +0200 Subject: [PATCH] Toggle for API version --- src/js/tabs/pid_tuning.js | 1 + src/tabs/pid_tuning.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index 423036c0..f1dd3293 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -599,6 +599,7 @@ TABS.pid_tuning.initialize = function (callback) { self.updateFilterWarning(); }); + $('.dynLpfCurveExpo').toggle(semver.gte(CONFIG.apiVersion, API_VERSION_1_44)); $('input[id="dtermLowpassDynEnabled"]').change(function() { var checked = $(this).is(':checked'); var cutoff_min = FILTER_DEFAULT.dterm_lowpass_dyn_min_hz; diff --git a/src/tabs/pid_tuning.html b/src/tabs/pid_tuning.html index 983bae1b..7343f2b5 100644 --- a/src/tabs/pid_tuning.html +++ b/src/tabs/pid_tuning.html @@ -1345,7 +1345,7 @@ - +