diff --git a/library.properties b/library.properties index 312239e..b100b3c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=smart-input-filter -version=0.3.1 +version=0.3.2 author=Adam Demuri maintainer=Adam Demuri sentence=A stable, unit-tested filter library diff --git a/src/filter.h b/src/filter.h index 3fca35c..110ea4a 100644 --- a/src/filter.h +++ b/src/filter.h @@ -60,7 +60,7 @@ class Filter { void Run(); // Returns the output of the filter, converted. - OutputType GetFilteredValue(); + OutputType GetFilteredValue() const; // Instructs the filter to run no more frequently than this delay. This can be // used to run the filter at a defined rate, which can make the filter more @@ -157,7 +157,7 @@ void Filter::SetLogToSerial(bool log) { } template -OutputType Filter::GetFilteredValue() { +OutputType Filter::GetFilteredValue() const { return Convert_(filtered_value_); }