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 for issue #29 (timer roll-over displaying 58:47) #31

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

bonzer35
Copy link
Collaborator

@bonzer35 bonzer35 commented Jun 2, 2023

The problem was in the getsecondsRemaining() method in motorControl.cpp.

When the countdown reached zero, by the time the method was called, millis would be greater than state.run_end so the calculation 'state.run_end-millis()' would produce a negative result that the unsigned int cannot handle. This resulted in a large positive integer

@futurexdesign futurexdesign merged commit d143785 into main Jun 2, 2023
@futurexdesign futurexdesign deleted the UI_CountDown_FIX branch June 2, 2023 19:38
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.

2 participants