Skip to content

Millis overflow block timer after ~49 days #26

@Artemia76

Description

@Artemia76

I have device running on ESP32 using this timer library.
Timer stop working after 49 days. It seem due to the uint32 value of millis() overflow ( 2^32 / 1000 / 3600 / 24 = 49.71 Days ) .
if (!m_callsArray[i].active || m_callsArray[i].timestamp > timestamp) continue;
I suppose this statement is always true when millis back near 0 and the stored value in m_callsArray is pretty close to 2^32 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions