Timer Problem

@whandall : lol sorry

@Awol : i'm pretty sure of it : 1) basic time conditions like (millis() >= previousmillis + duration) may fail when millis() gets back to zero. 2) secure time conditions like (millis() - previousmillis >= duration) are not affected by millis roll over.

bricoleau: @Awol : i'm pretty sure of it : 1) basic time conditions like (millis() >= previousmillis + duration) may fail when millis() gets back to zero. 2) secure time conditions like (millis() - previousmillis >= duration) are not affected by millis roll over.

I don't disagree with that, but I don't see how it applies here. I already said I don't like the test for equality, which is why I suggested ">=", twice.

Sorry my mistake Of course, test for equality is the worst way to evaluate stop condition.