Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix oneshot adc read waiting indefinitely #799

Merged
merged 1 commit into from
May 3, 2024

Conversation

mjptree
Copy link
Contributor

@mjptree mjptree commented May 2, 2024

Currently, the Adc::read typically gets stuck in an infinite loop when running in OneShot configuration. This bug was introduced in version 0.10 and does not exist on prior versions. It results from the CS register being read once outside of the wait loop and then never again.

jannic added a commit to jannic/rp-hal that referenced this pull request May 3, 2024
jannic added a commit to jannic/rp-hal that referenced this pull request May 3, 2024
@jannic
Copy link
Member

jannic commented May 3, 2024

Thanks for finding and fixing this bug! (And sorry for introducing it...)
I guess we should work on the test coverage.

@jannic jannic merged commit dfbdb9a into rp-rs:main May 3, 2024
6 checks passed
jannic added a commit to jannic/rp-hal that referenced this pull request May 3, 2024
jannic added a commit to jannic/rp-hal that referenced this pull request May 3, 2024
ithinuel added a commit that referenced this pull request May 4, 2024
jannic added a commit to jannic/rp-hal that referenced this pull request Jul 27, 2024
thejpster added a commit that referenced this pull request Jul 27, 2024
This adds a test-case covering the fix from PR #799
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