From 796cc72e0dbd47a1516342ee2e3880228b4e8092 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Fri, 8 Sep 2017 07:49:38 -0600 Subject: [PATCH] Fix missing variable Pull request #576 uses variable `checked` everywhere except one line. Makes consistent. --- tabs/pid_tuning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 22f9af4e..74efbfa3 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -272,7 +272,7 @@ TABS.pid_tuning.initialize = function (callback) { var checked = $(this).is(':checked'); $('.pid_filter input[name="gyroNotch1Frequency"]').val(checked ? DEFAULT.gyro_soft_notch_hz_1 : 0) .attr('disabled', !checked); - $('.pid_filter input[name="gyroNotch1Cutoff"]').val($(this).is(':checked') ? DEFAULT.gyro_soft_notch_cutoff_1 : 0) + $('.pid_filter input[name="gyroNotch1Cutoff"]').val(checked ? DEFAULT.gyro_soft_notch_cutoff_1 : 0) .attr('disabled', !checked); });