Hi! This is my first post on the forum, so I hope I'm doing things right.
So I have this "waiting" loop that waits 10 seconds for the user to push a button. If the button is not pushed, it will exit the loop and carry on with the rest of the program.
To achieve that, I used the millis(); function. I'm sure there's many ways out there that I can implement this function but this way seems to work for what I need.
How can I make sure my code accounts for millis(); overflowing?
Edit: I have removed my code because of a misunderstanding that I had. I do not want to cause more confusion.