Closed PascalKern closed 1 year ago
Hi @PascalKern, thank you for raising these issues. I was not aware of the ticks_diff
function, so switching to that makes sense. It looks like there's other places throughout the code that need switching to that too.
Hi @ZodiusInfuser
Sorry my late reply. Some troublesome weeks behind and around me and not the time I want for coding etc. Anyway. Finally some time! :)
First of all thanks for using my code updates and merging them. Secondly, you are very welcome I do like it when we can help out each other and improve our skills and knowledge. Open source is great! :D To be honest I had a little help 😇 With PyCharm (a "propper" IDE ;)) such issues [ticks_xx has no sub] can be spotted much easier.
And thanks a lot for fixing all other instances of the ticks_xx - ticks_xx. I was only focused on the weather board and its issues.
Best, Pascal
It might fix some issues reported in: https://github.com/pimoroni/enviro/issues/99. At least will a division by 0 bringing the board into sort of a limbo state which might end freezing (RTC wakeup issue because of ZeroDivisionError)
Tested and running over a week without any issues on a weather board.