Skip to content

Fix for wind and rain sensors dropping to 0 - #39

Open
what-does-that-do wants to merge 2 commits into
pimoroni:mainfrom
what-does-that-do:polling-fix
Open

Fix for wind and rain sensors dropping to 0#39
what-does-that-do wants to merge 2 commits into
pimoroni:mainfrom
what-does-that-do:polling-fix

Conversation

@what-does-that-do

Copy link
Copy Markdown

Fix for #24

The issue occurred when the interrupt line got stuck on LOW.
I have increased the time between polls, so every 500ms at the end of the loop, the interrupt line is reset.
This ensures that if the line gets stuck LOW, it will be reset back to HIGH every 500ms - preventing the glitch with the line being stuck from ever occurring.

I have tested this update on my board, and so far it has worked.

AI disclaimer: I used Google Gemini to help me pin point where the issue was occurring, then adjusted a fix to be appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant