Skip to content

Basic Demo - suggested update #51

@tfcroft4

Description

@tfcroft4

In the basic demo there is a millisecond drift in the output.
I think changing the code like so gives output every 1000ms rather than 1001ms

void loop() {
    static int last = 0;

    if ((millis () - last) **>=** SHOW_TIME_PERIOD) {
        last = millis ();
        Serial.println (NTP.getTimeDateStringUs ());
    }
}

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