Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Demo - suggested update #51

Open
tfcroft4 opened this issue Nov 14, 2023 · 1 comment
Open

Basic Demo - suggested update #51

tfcroft4 opened this issue Nov 14, 2023 · 1 comment

Comments

@tfcroft4
Copy link

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 ());
    }
}
@gmag11
Copy link
Owner

gmag11 commented Nov 15, 2023

Hi, thank you for reporting. That's true. I'll fix it now

gmag11 added a commit that referenced this issue Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants