1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

lwip2 fixes: turn off random delay before sntp request (#5567)

+update dhcp6 patch: update ip_addr_set_zero_ip6 to use IP_SET_TYPE_VAL, avoiding compilation warning
This commit is contained in:
david gauchard
2018-12-29 22:40:39 +01:00
committed by Develo
parent 62b8ac6be7
commit b26c19e82e
9 changed files with 13 additions and 2 deletions

View File

@ -3555,6 +3555,17 @@
#define SNTP_MAX_SERVERS 3
#endif
// turn off random delay before sntp request
// when SNTP_STARTUP_DELAY is not defined,
// LWIP_RAND is used to set a delay
// from sntp_opts.h:
/** According to the RFC, this shall be a random delay
* between 1 and 5 minutes (in milliseconds) to prevent load peaks.
* This can be defined to a random generation function,
* which must return the delay in milliseconds as u32_t.
*/
#define SNTP_STARTUP_DELAY 0
/*
--------------------------------------------------
------------------- LOCAL FIXES ------------------