Arduino & millis() – overflow

We know that the value of millis() rolls over after 49 days. You can write a hack to overcome with this but how to make sure it works, without testing your code for 49 days?

Here’s the trick. Modify the arduino core code so that millis() will actually roll over after 10 seconds from start. If your Arduino program overcomes that, it will probably do it again after 49 days.

Edit file /Applications/

.. And modify / replace:
volatile unsigned long timer0_millis = ULONG_MAX - (1000*10);