Browse Source

fix flt_cutoff_min -> flt_cutoff_max

sbg
Daniel Agar 5 years ago committed by Lorenz Meier
parent
commit
386673e6c3
  1. 4
      src/modules/rc_update/rc_update.cpp

4
src/modules/rc_update/rc_update.cpp

@ -112,10 +112,10 @@ RCUpdate::parameters_updated() @@ -112,10 +112,10 @@ RCUpdate::parameters_updated()
}
// make sure the filter is in its stable region -> fc < fs/2
const float flt_cutoff_min = _param_rc_flt_smp_rate.get() / 2.0f - 1.0f;
const float flt_cutoff_max = _param_rc_flt_smp_rate.get() / 2.0f - 1.0f;
if (_param_rc_flt_cutoff.get() > flt_cutoff_max) {
_param_rc_flt_cutoff.set(flt_cutoff_min);
_param_rc_flt_cutoff.set(flt_cutoff_max);
_param_rc_flt_cutoff.commit_no_notification();
}

Loading…
Cancel
Save