Not seeing any code - assuming 'something happens' and sometime after that further response is needed?
That's what that code does: Waits for event "if ( time to wait 3300 milliseconds)" then...
Type: Posts; User: defragster
Not seeing any code - assuming 'something happens' and sometime after that further response is needed?
That's what that code does: Waits for event "if ( time to wait 3300 milliseconds)" then...
Trying to reset the global system milliseconds value can only cause trouble.
Above code, here using elapsedMillis that seems to be linked in above link?
Same net effect - usage is cleaner -...
Best is to use relative offsets on millis() for each timer involved.
A uint32_t will always give the offset even after rollover of the millis() return value
No idea what the usage for each looks...