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 buffer issue for rp2040 PulseIn #6361

Merged
merged 1 commit into from
May 8, 2022

Conversation

mwisslead
Copy link

Updates the starting index when maxlen is reached. Fixes #6348

@dhalbert dhalbert requested a review from DavePutz May 7, 2022 01:58
@DavePutz
Copy link
Collaborator

DavePutz commented May 8, 2022

I tested this fix on the original script, a DHT11, and an infrared remote. All worked correctly, so looks good to me.

@dhalbert
Copy link
Collaborator

dhalbert commented May 8, 2022

Thanks for testing, @DavePutz!

@dhalbert dhalbert merged commit bb46898 into adafruit:main May 8, 2022
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.

rp2040 pulseio.PulseIn last pulse at beginning
3 participants