I am using RunningMedian Arduino library in a project.
In the library header file the MEDIAN_MAX_SIZE is preset to 19.
#define MEDIAN_MAX_SIZE 19 // adjust if needed
I need to override the header to make MEDIAN_MAX_SIZE 30 without changing the library files so updates can still be done in the future.
My declatations:
#define RunningMedian::MEDIAN_MAX_SIZE 30 // library over ride ??
#define ACTIVE_MAX 30 // max active buffer size
RunningMedian ActiveSamples( ACTIVE_MAX ); // FIFO readings
This will not compile.
The library code will not create a buffer greater than MEDIAN_MAX_SIZE.
How can I override the 19 for 30 without changing the RunningMedian.h file and still change MEDIAN_MAX_SIZE size in it's class?