vurdalakov / radsensboard

An Arduino library for RadSens Geiger counter board
MIT License
3 stars 1 forks source link

Initialize _pulseCount variable #1

Closed denpamusic closed 2 years ago

denpamusic commented 2 years ago

Hi,

I've noticed that _pulseCount variable was not initialized to 0. That sometimes leads to the variable, having unpredictable value on startup due to additive assignment (+=) on this line, when RadSensBoard:readData() is being called from RadSenBoard:init().

Thank you for your great work on the library!