Skip to content

Commit

Permalink
Make GetFilteredValue const
Browse files Browse the repository at this point in the history
  • Loading branch information
ademuri committed Jul 17, 2022
1 parent df573ac commit e0955c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=smart-input-filter
version=0.3.1
version=0.3.2
author=Adam Demuri <[email protected]>
maintainer=Adam Demuri <[email protected]>
sentence=A stable, unit-tested filter library
Expand Down
4 changes: 2 additions & 2 deletions src/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -157,7 +157,7 @@ void Filter<InputType, OutputType>::SetLogToSerial(bool log) {
}

template <typename InputType, typename OutputType>
OutputType Filter<InputType, OutputType>::GetFilteredValue() {
OutputType Filter<InputType, OutputType>::GetFilteredValue() const {
return Convert_(filtered_value_);
}

Expand Down

0 comments on commit e0955c2

Please sign in to comment.