mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 15:25:22 +03:00
Fixed notch range adjustments.
This commit is contained in:
parent
323c1d5161
commit
b34a6642f2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue