From 4040be999087e082ac1988b673e797b3e6293864 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 10 Feb 2014 20:37:46 +0900 Subject: [PATCH] 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 --- libraries/Filter/FilterWithBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/Filter/FilterWithBuffer.h b/libraries/Filter/FilterWithBuffer.h index 761678fd26..4076b2e2b3 100644 --- a/libraries/Filter/FilterWithBuffer.h +++ b/libraries/Filter/FilterWithBuffer.h @@ -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]; }