You want a snippet of code, that causes an undesirable side-effect, to overcome a serious problem introduced by your unnecessary attempt to reset the millis counter. The answer is no.I'm not sure why you're being argumentative about this; it's nothing personal. You said there were two additional steps, so I'm curious to know what they are. Otherwise, I'm not sure what undesirable side-effects you're talking about.
The solution to my problem is not at the reference you cited. It states:
Now, the only potential problem is that if you wait approximatly 49 days, you will get into the range where it again waits for the timer....Which is exactly what I need to avoid. So far, my device has been running for 90+ days without the problems it was having at around 49 before this fix. I posted this because it was helpful to me, and may be to others as well.
Just because this dude said:
There is NO problem with overflow if you use unsigned long for the variablesDoes not mean it's true. Using the unsigned long type may eliminate the problem for some, but only lessens it for others.