2 ms·
This is a good point, although the author notes in the article that the battery will only last a few minutes you never know if this code might get copied into a
by roland35 7y ago
This is a good point, although the author notes in the article that the battery will only last a few minutes you never know if this code might get copied into a different project!
What I would do in this particular case is make a note of the limitations in the function block comment. There are always trade-offs in embedded code so I think it is fair to say that yes this code does not handle rollover, FYI.