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

Handle micros() rollover #19

Open
gabrielkrell opened this issue Jun 13, 2019 · 0 comments
Open

Handle micros() rollover #19

gabrielkrell opened this issue Jun 13, 2019 · 0 comments

Comments

@gabrielkrell
Copy link
Owner

gabrielkrell commented Jun 13, 2019

micros() will roll over after about 70 minutes. For future applications requiring time constants, use duration comparisons, not timestamp comparisons, but for now, confirm with Rama and change the time to use millis() instead of micros() if we don't need the precision.

https://github.com/gabrielkrell/strain-rig/blob/master/strain-rig-firmware/strain-rig-firmware.ino#L39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant