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:
@ -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 ------------------
|
||||
|
Reference in New Issue
Block a user