diff --git a/libraries/Filter/ModeFilter.h b/libraries/Filter/ModeFilter.h index 00137b652e..b9a76b293a 100644 --- a/libraries/Filter/ModeFilter.h +++ b/libraries/Filter/ModeFilter.h @@ -76,7 +76,7 @@ T ModeFilter::apply(T sample) // drops either the highest or lowest sample depending on the 'drop_high_sample' parameter // template -void ModeFilter::isort(T new_sample, bool drop_high_sample) +void ModeFilter::isort(T new_sample, bool drop_high) { int8_t i; @@ -84,10 +84,10 @@ void ModeFilter::isort(T new_sample, bool drop_high_sample) // the rest is the same as dropping the high sample if( Filter::sample_index < Filter::filter_size ) { Filter::sample_index++; - drop_high_sample = true; + drop_high = true; } - if( drop_high_sample ) { // drop highest sample from the buffer to make room for our new sample + if( drop_high ) { // drop highest sample from the buffer to make room for our new sample // start from top. Note: sample_index always points to the next open space so we start from sample_index-1 i = Filter::sample_index-1;