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

Issue 7352 - set max value of a pulsein #7378

Merged
merged 1 commit into from Dec 25, 2022
Merged

Conversation

DavePutz
Copy link
Collaborator

Fix for issue #7352. Since pulsein values are defined as 16-bit across all boards, put in a check for Espressif boards. When a pulse exceeds 65535 to set it to 65535 (max value of 16 bits).

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thank you!

@dhalbert dhalbert merged commit 0d3b777 into adafruit:main Dec 25, 2022
@DavePutz DavePutz deleted the issue_7325 branch February 3, 2023 17:13
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.

any limitation pulseio.PulseIn maxlen and pulse length on M5Stack Atom ?
2 participants