Skip to content

Commit

Permalink
option zero to never auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancrubin committed Oct 6, 2022
1 parent 6097c93 commit 047ea95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Watermeter
version=1.0.7
version=1.0.8
author=Jordan Rubin <[email protected]>
maintainer=Jordan Rubin <[email protected]>
sentence=Control Library for reed switch pulse actuated water meters such as the DAE Water Meter Model V-100P
Expand Down
1 change: 1 addition & 0 deletions src/Watermeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 047ea95

Please sign in to comment.