diff --git a/library.properties b/library.properties index ef4cd2c..f288c96 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Watermeter -version=1.0.7 +version=1.0.8 author=Jordan Rubin maintainer=Jordan Rubin sentence=Control Library for reed switch pulse actuated water meters such as the DAE Water Meter Model V-100P diff --git a/src/Watermeter.cpp b/src/Watermeter.cpp index fbabcf2..c3decaa 100644 --- a/src/Watermeter.cpp +++ b/src/Watermeter.cpp @@ -50,6 +50,7 @@ WATERMETER::WATERMETER(int signalGPIOpin, bool useInternalPullups,char measure, // FUNCTION - [updated] - [Checks and responds to the update flag--------------] bool WATERMETER::updated(void){ if (update){ + if(saveint == 0){return 1;} if ((millis() - lastUpdate) > saveint) { writeFile(); lastUpdate = millis();