1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Merge pull request #659 from spuder/patch-2

Fix missing variable
This commit is contained in:
Bas Delfos 2017-09-08 17:18:48 +02:00 committed by GitHub
commit c8cfefac1a

View file

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