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

PwmHz::get_period() crashes with division by zero. #433

Open
SnVIZQ opened this issue Aug 25, 2022 · 1 comment
Open

PwmHz::get_period() crashes with division by zero. #433

SnVIZQ opened this issue Aug 25, 2022 · 1 comment

Comments

@SnVIZQ
Copy link
Contributor

SnVIZQ commented Aug 25, 2022

Version: 0.9.0
How to reproduce: Set up timer with frequency of 1000Hz, then call get_period().
Expected result: Returned value of 1000Hz
Actual result: Division by zero fault.

@SnVIZQ
Copy link
Contributor Author

SnVIZQ commented Aug 25, 2022

Potential solution provided in PR #434.

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

No branches or pull requests

1 participant