Skip to content

nrf: PWMAudioOut: deactivate PWM when deinitting self #2212

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

Merged
merged 2 commits into from
Oct 12, 2019

Conversation

jepler
Copy link

@jepler jepler commented Oct 12, 2019

Otherwise, when an AudioPWMOut object was deinitted without being explicitly stop()ped, it would use up a slot in active_audio[]; the 5th iteration would create a non-working audio object which would just buzz instead of playing the right thing.

(In a separate commit, stylistic changes are made to better match the CP coding style)

Closes: #2203

.. otherwise, when an AudioPWMOut object was deinitted without being
explicitly stop()ped, it would use up a slot in active_audio[]; the
5th iteration would create a non-working audio object which would just
buzz instead of playing the right thing.

Closes: adafruit#2203
@ladyada
Copy link
Member

ladyada commented Oct 12, 2019

@jepler want me to test on hardware?

@jepler
Copy link
Author

jepler commented Oct 12, 2019

@ladyada that would be great, thanks!

@ladyada
Copy link
Member

ladyada commented Oct 12, 2019

verified i am boppin for many loops!

@ladyada ladyada merged commit 1a53ced into adafruit:master Oct 12, 2019
@jepler jepler deleted the nrf-audio-issue2203 branch November 3, 2021 21:10
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.

wav files on CPXb crash on fifth button touch
2 participants