8000 Fix handling of zero-length pulseout pulse by DavePutz · Pull Request #6798 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Fix handling of zero-length pulseout pulse #6798

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 &ldq 8000 uo;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

Merged
merged 2 commits into from
Aug 25, 2022
Merged

Conversation

DavePutz
Copy link
Collaborator
@DavePutz DavePutz commented Aug 23, 2022

Attempting a zero-length pulse in pulseout would mean on an NRF board that the interrupt timer would never fire; thus hanging the program. This patch will bypass and ignore any pulses with a length of 0.

Closes #6735.

@jepler
Copy link
jepler commented Aug 23, 2022

[I updated the initial comment to have the special syntax for auto-closing the related issue]

jepler
jepler previously requested changes Aug 23, 2022
reorder the tests for zero-length
@microdev1 microdev1 requested a review from jepler August 25, 2022 06:50
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.

This looks good to me now -- thanks! Will merge and backport to 7.3.x.

@dhalbert dhalbert merged commit 83838fc into adafruit:main Aug 25, 2022
dhalbert added a commit that referenced this pull request Aug 25, 2022
7.3.x #6798 backport (zero-length pulse Pulseout fix
@DavePutz DavePutz deleted the issue_6735 branch December 4, 2022 18:54
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.

pulseio.PulseOut's send function hanging project
3 participants
0