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

Prevent problems after 49 days in model 3 #11

Open
RainerWinkler opened this issue Sep 18, 2020 · 1 comment
Open

Prevent problems after 49 days in model 3 #11

RainerWinkler opened this issue Sep 18, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@RainerWinkler
Copy link
Owner

Handle the rollover of millis() in model 3 correctly. As for instance described here: https://www.baldengineer.com/arduino-how-do-you-reset-millis.html

@RainerWinkler RainerWinkler added the bug Something isn't working label Sep 18, 2020
@RainerWinkler RainerWinkler self-assigned this Sep 18, 2020
@RainerWinkler
Copy link
Owner Author

The fix has to assure that the rollover works correctly. To do this do not use millis() directly but add a very high value to millis() and use this value. Do this in a way that the rollover takes place about a minute after starting the program. Any errors due to the rollover will than occur immidiately after start. This will lead to a good test coverage of the rollover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant