liberatedsystems / RNode_Firmware_CE

RNode is an open, free and flexible digital radio interface with many uses
https://unsigned.io/rnode
GNU General Public License v3.0
51 stars 11 forks source link

millis() wraparound #25

Open jacobeva opened 3 months ago

jacobeva commented 3 months ago

Apparently, millis() will wrap around to 0 after roughly 49 days of execution time. In environments where the RNode may be left unattended, this could be an issue, and cause weird behaviour.

I need to check if this is a real problem or not.

See: https://www.arduino.cc/reference/en/language/functions/time/millis/

jacobeva commented 3 months ago

https://arduino.stackexchange.com/questions/12587/how-can-i-handle-the-millis-rollover