diff options
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index b8a0ac77..b95de697 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -154,7 +154,7 @@ void accela::filter(const double* input, double *output) output[k] *= dt; output[k] += last_output[k]; - if (signum(last_output[k] - output[k]) < 0) + if (signum(last_output[k] - output[k]) >= 0) output[k] = std::fmax(input[k], output[k]); else output[k] = std::fmin(input[k], output[k]); |