Skip to content

feat: bubble up wait for status errors#3

Merged
zeldan merged 2 commits intorust-dd:mainfrom
inhumantsar:feat/bubble-up-wait_for_status-errors
May 2, 2025
Merged

feat: bubble up wait for status errors#3
zeldan merged 2 commits intorust-dd:mainfrom
inhumantsar:feat/bubble-up-wait_for_status-errors

Conversation

@inhumantsar
Copy link
Copy Markdown
Contributor

While getting a DHT-11 working with esp-hal v1.0.0-beta.0, I noticed that read() would never return when using the published crate. When I switched to using a local clone of my fork, it started returning 0s for temperature and humidity rather than throwing an error. With match clauses in wait_for_state, it returned Timeout errors instead.

This PR adds those match clauses for timeout and pin errors to wait_for_state and adds tests for those errors. VS Code automatically addressed a few linter nits as well.

@zeldan zeldan merged commit b6e9b4e into rust-dd:main May 2, 2025
1 check passed
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.

2 participants