Filter: remove unnecessary fmaxf

This commit is contained in:
Paul Riseborough 2021-04-10 22:19:55 +10:00 committed by Andrew Tridgell
parent 91856b1d8c
commit 458c46353d
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ float SlewLimiter::modifier(float sample, float dt)
// Calculate the gain adjustment
float mod;
if (_oscillation_slew_rate > slew_rate_max) {
mod = slew_rate_max / fmaxf(_oscillation_slew_rate, slew_rate_max);
mod = slew_rate_max / _oscillation_slew_rate;
} else {
mod = 1.0f;
}