I have made an irrigation system using Arduino. Timer program is based on comparing the previous Millis() and current Millis(). I want to know the chance for error when the currentMillis() overflows and start from zero after 50 days, while the previous Millis() stored in the variable remains as a larger value.
BlinkWithoutDelay
example the overflow is no problem as long as the time difference between the previousmillis()
value and the current one stays below the ~50 days, sincemillis()
just cannot count longer.