Skip to content

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Oct 6, 2020

This PR overrides settimeofday_cb() with a new callback signature:

  • currently void myCB () is and remains accepted
  • void myBetterCB (bool from_sntp) is added: from_sntp is true when time is set by SNTP, otherwise it is false.

Consequently:

  • lwip2 is updated with a trivial change
  • NTP_TZ_DST example is also updated to show this new callback

Fixes #7616 @JakubRakus

@JakubRakus
Copy link

Tested, works like a charm.

Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d-a-v d-a-v merged commit 95fb104 into esp8266:master Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants