Browse Source

FilterWithBuffer: make get_sample non-virtual

virtual added to apply() and reset() declaration inline with base class.
This should have no impact on memory usage or functionality
master
Randy Mackay 11 years ago
parent
commit
4040be9990
  1. 6
      libraries/Filter/FilterWithBuffer.h

6
libraries/Filter/FilterWithBuffer.h

@ -34,17 +34,17 @@ public: @@ -34,17 +34,17 @@ public:
FilterWithBuffer();
// apply - Add a new raw value to the filter, retrieve the filtered result
T apply(T sample);
virtual T apply(T sample);
// reset - clear the filter
void reset();
virtual void reset();
// get filter size
uint8_t get_filter_size() const {
return FILTER_SIZE;
};
virtual T get_sample(uint8_t i) const {
T get_sample(uint8_t i) const {
return samples[i];
}

Loading…
Cancel
Save