Toggle for API version

10.8-maintenance
Asizon 2020-06-17 21:52:59 +02:00
parent dcdc15c5e3
commit 41c8286788
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -1345,7 +1345,7 @@
</td>
</tr>
<tr class="dtermLowpassDyn">
<tr class="dtermLowpassDyn dynLpfCurveExpo">
<td>
<span class="groupSwitchValue">
<span class="inputSwitch"><input type="checkbox" id="dtermLowpassDynExpoEnabled" class="toggle" /></span>