diff --git a/library.properties b/library.properties index f8a1387..a14313e 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=RadiationWatch -version=0.6.0 +version=0.6.1 author=puuu, thomasaw, Tourmal, Yoan Tournade maintainer=Yoan Tournade sentence=Arduino driver for Radiation Watch Pocket Geiger sensor diff --git a/src/RadiationWatch.cpp b/src/RadiationWatch.cpp index 62dadd8..59172ae 100644 --- a/src/RadiationWatch.cpp +++ b/src/RadiationWatch.cpp @@ -47,6 +47,9 @@ void RadiationWatch::setup() // Initialize _countHistory[]. for(int i = 0; i < HISTORY_LENGTH; i++) _countHistory[i] = 0; + _count = 0; + historyIndex = 0; + historyLength = 0; // Init measurement time. previousTime = millis(); previousHistoryTime = millis();