1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-22 07:45:19 +03:00

Merge pull request #1377 from mikeller/fix_notch_range_adjustments

Fixed notch range adjustments.
This commit is contained in:
Michael Keller 2019-04-16 00:20:15 +12:00 committed by GitHub
commit 0ef835947f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -507,8 +507,8 @@ TABS.pid_tuning.initialize = function (callback) {
// The notch cutoff must be smaller than the notch frecuency
function adjustNotchCutoff(frequencyName, cutoffName) {
var frecuency = $(".pid_filter input[name='" + frequencyName + "']").val();
var cutoff = $(".pid_filter input[name='" + cutoffName + "']").val();
var frecuency = parseInt($(".pid_filter input[name='" + frequencyName + "']").val());
var cutoff = parseInt($(".pid_filter input[name='" + cutoffName + "']").val());
// Change the max and refresh the value if needed
var maxCutoff = frecuency == 0 ? 0 : frecuency - 1;