From 373006b9d46e5e60e67c5ea4378f0c1dc11fe41a Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Tue, 24 Sep 2024 13:43:46 +0200 Subject: [PATCH] clean space --- src/js/tabs/pid_tuning.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index 96b7ad2106..67b8d5c57f 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -479,22 +479,22 @@ pid_tuning.initialize = function (callback) { dElement.val(dLimit); } } - + function setupDAdjustmentHandlers(axis) { const dMaxElement = $(`.pid_tuning input[name="dMax${axis}"]`); const dElement = $(`.pid_tuning .${axis} input[name="d"]`); - + dMaxElement.change(function() { adjustDValues(dElement, dMaxElement); }).change(); - + dElement.change(function() { adjustDValues(dElement, dMaxElement); }).change(); } - + ['Roll', 'Pitch', 'Yaw'].forEach(axis => setupDAdjustmentHandlers(axis)); - + $('input[id="gyroNotch1Enabled"]').change(function() { const checked = $(this).is(':checked'); const hz = FC.FILTER_CONFIG.gyro_notch_hz > 0 ? FC.FILTER_CONFIG.gyro_notch_hz : FILTER_DEFAULT.gyro_notch_hz; @@ -1036,11 +1036,11 @@ pid_tuning.initialize = function (callback) { FC.FEATURE_CONFIG.features.generateElements($('.tab-pid_tuning .features')); $('.tab-pid_tuning .pidTuningSuperexpoRates').hide(); - + if (semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_47)) { const derivativeTip = document.querySelector('.derivative .cf_tip'); const dMaxTip = document.querySelector('.dmax .cf_tip'); - + ['i18n', 'i18n_title'].forEach(attr => { const tmp = derivativeTip.getAttribute(attr); derivativeTip.setAttribute(attr, dMaxTip.getAttribute(attr));