You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is NO millis overflow problem. The variable previous is unsigned long, so even if Millis() overflows, code still works correctly. This line is scattered all over, and since unnecessary, a complete waste of precious space.
Found out here, Libelium/waspmoteapi#15 that
this could be much more simple.
If I have not removed the function enterily it's because it would take
more program memory, something I want to avoid now (we run out of
program memory). That's why the function is declared noinline.
There is NO millis overflow problem. The variable previous is unsigned long, so even if Millis() overflows, code still works correctly. This line is scattered all over, and since unnecessary, a complete waste of precious space.
See - http://www.gammon.com.au/millis or http://playground.arduino.cc/Code/TimingRollover
or many other pages dispelling this myth
The text was updated successfully, but these errors were encountered: