Update src/modules/rc_update/rc_update.cpp

Co-Authored-By: Beat Küng <beat-kueng@gmx.net>
This commit is contained in:
Daniel Agar
2019-12-04 10:21:32 -05:00
committed by Lorenz Meier
parent 57fc98812d
commit 607cb97758
+1 -1
View File
@@ -114,7 +114,7 @@ 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;
if (_param_rc_flt_cutoff.get() < flt_cutoff_min) {
if (_param_rc_flt_cutoff.get() > flt_cutoff_max) {
_param_rc_flt_cutoff.set(flt_cutoff_min);
_param_rc_flt_cutoff.commit_no_notification();
}