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 Pwm::set_output_pin soundness, add swap_output_pin #335

Merged
merged 2 commits into from
Jul 13, 2021
Merged

Fix Pwm::set_output_pin soundness, add swap_output_pin #335

merged 2 commits into from
Jul 13, 2021

Conversation

jonas-schievink
Copy link
Contributor

Fixes #320 by taking the pin by-value (cc @Dirbaio)

To allow the same flexibility as before, this adds swap_output_pin, which returns the old pin (though I haven't tested this API).

@jonas-schievink
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 13, 2021

Build succeeded:

@bors bors bot merged commit 04579df into nrf-rs:master Jul 13, 2021
@jonas-schievink jonas-schievink deleted the pwm-set-output-pin branch August 5, 2021 14:19
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.

Pwm::set_output_pin is unsound
1 participant