From 10db779a0db2c4ba7779ce6654518cc09e3c36fa Mon Sep 17 00:00:00 2001 From: AliSyedShah <45460652+AliSyedShah@users.noreply.github.com> Date: Thu, 21 Feb 2019 12:13:33 +0100 Subject: [PATCH] Update ResponsiveAnalogRead.h --- src/ResponsiveAnalogRead.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ResponsiveAnalogRead.h b/src/ResponsiveAnalogRead.h index 15ade2b..846eabb 100644 --- a/src/ResponsiveAnalogRead.h +++ b/src/ResponsiveAnalogRead.h @@ -46,12 +46,12 @@ class ResponsiveAnalogRead void begin(int pin, bool sleepEnable, float snapMultiplier = 0.01); // use with default constructor to initialize - inline int getValue() { return responsiveValue; } // get the responsive value from last update - inline int getRawValue() { return rawValue; } // get the raw analogRead() value from last update + inline double getValue() { return responsiveValue; } // get the responsive value from last update + inline double getRawValue() { return rawValue; } // get the raw analogRead() value from last update inline bool hasChanged() { return responsiveValueHasChanged; } // returns true if the responsive value has changed during the last update inline bool isSleeping() { return sleeping; } // returns true if the algorithm is currently in sleeping mode void update(); // updates the value by performing an analogRead() and calculating a responsive value based off it - void update(int rawValueRead); // updates the value accepting a value and calculating a responsive value based off it + void update(double rawValueRead); // updates the value accepting a value and calculating a responsive value based off it void setSnapMultiplier(float newMultiplier); inline void enableSleep() { sleepEnable = true; }