Skip to content

Keep on trying to retrieve NTP time as long as the time is unknown #5

@0xCAFEDECAF

Description

@0xCAFEDECAF

for(byte i = 0; i < NUMSENSORS; i++)

My suggestion would be to insert the following lines here:

    // Keep on trying to retrieve NTP time as long as we don't know the time.
    // In a situation of power line restore, the uplink (home router) might still be rebooting when the
    // call to UpdateTime() is made within setup() above.
    if (now() < 1451606400UL) UpdateTime(); // 1451606400UL is 2016-01-01 0:00:00

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