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

Strobe Frequency divide by 0 bug #616

Open
BlackDragonN001 opened this issue Dec 30, 2023 · 1 comment
Open

Strobe Frequency divide by 0 bug #616

BlackDragonN001 opened this issue Dec 30, 2023 · 1 comment

Comments

@BlackDragonN001
Copy link

I found that if Strobe Frequency is Int<0> it causes the board to hard lock up, no errors or warnings from arduino,

STROBE_FREQUENCY cannot be 0. Causes a Divide by 0 error in ProffieOS\functions\strobe.h line 21:

(uint32_t timeout = strobe_ ? strobe_millis : (1000 / strobe_frequency);)

and line 24:

if (m - strobe_start_ > strobe_millis + (1000 / strobe_frequency))

@profezzorn
Copy link
Owner

Fix in 1211344

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

2 participants