Skip to content

Use NTP last sync timestamp for ntpSynced() #1342

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

Merged
merged 2 commits into from
Nov 19, 2018

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Nov 13, 2018

Ref:
#1079
gmag11/NtpClient#70 (comment) and further comments
NtpClientLib.cpp / getTime() setting last sync time

Last sync timestamp is taken directly from udp packet so doing this will avoid temporary treating ntp as synced and having 2036 as year.

@mcspr mcspr added the ntp label Nov 13, 2018
@xoseperez xoseperez merged commit 56a8010 into xoseperez:dev Nov 19, 2018
@mcspr mcspr deleted the fix/ntp-year-2036 branch November 22, 2018 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants