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

Update NTP #1642

Merged
merged 3 commits into from
Mar 25, 2019
Merged

Update NTP #1642

merged 3 commits into from
Mar 25, 2019

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Mar 21, 2019

  • wrapper NTPClient class to avoid inadvertently calling NTP::getTime() while setting things up
  • only call NTP::getTime() when in loop(), install async TimeLib sync provider and manually set TimeLib time
  • randomize sync and delay times
  • ntpTimeout option
  • comments

Avoid cases like #1617, when NTP::getTime() sometimes can be called from SYS context (async lib callback, ticker etc.)

Note: about swapping sync providers. something similar was already done for #1036, but that pr is still in a separate branch :(

- wrapper NTPClient class to avoid inadvertently calling NTP::getTime() while
setting things up
- only call NTP::getTime() when in loop(), install async TimeLib
sync provider and manually set TimeLib time
- randomize sync and delay times
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

Successfully merging this pull request may close these issues.

2 participants