Millis() / Unsigned long subtraction not working

Seems to indicate that you should put some structure in your program.
For example, make dedicated functions.
Imho the main loop should just care about all the "tasks",
rach "task" should encapsulate what it is written for.

1 Like