Skip to content

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
@mcspr mcspr force-pushed the ntp/async-state branch from dfb5e4d to 91cbba3 Compare March 21, 2019 01:26
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