Closed kzehnter closed 2 years ago
Thank you for your issue report, kzehnter.
I think I should have cared about the case of the value of (sum(array) % 0x100)
is zero.
I'll make a fix, and sorry for my late reply.
Happy new year, kzehnter!
I've fixed and released it as version 3.0.5.
Before fixing, this issue reproduces a few times in a thousand times. Now, not reproduce.
Would you please confirm this fix on your side? Thank you!
Happy new year! Thank you for fixing that so quickly! :)
I just let version 3.0.5 run on my raspberrypi for a few thousand co2 reads and I haven't gotten the error yet so I can confirm it works!
Hi kzehnter,
Thank you for your so quick confirmation! I've really appreciated your report giving me the opportunity to fix a bug that has been around for many years.
Would you mind if I will close this issue?
I have a python program which calls mh_z19.read() every few seconds and sometimes (I don't know why it is only sometimes) I get this error:
Steps to reproduce: Call mh_z19.read() every 2 seconds and wait. In an hour of runtime it happened around 4 times.