Skip to content

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