From 1e30df4b0a1a5b23f865ebd5ba81497e4d351c71 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 13:50:35 +0100 Subject: [PATCH] Change the sntp update interval to 6 hours. This will result in less traffic to the (free and community run) sntp servers. --- .../esp32/include/lwip/lwip/src/include/lwip/apps/sntp_opts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sdk/esp32/include/lwip/lwip/src/include/lwip/apps/sntp_opts.h b/tools/sdk/esp32/include/lwip/lwip/src/include/lwip/apps/sntp_opts.h index cb627716480..9d3a85f20c0 100644 --- a/tools/sdk/esp32/include/lwip/lwip/src/include/lwip/apps/sntp_opts.h +++ b/tools/sdk/esp32/include/lwip/lwip/src/include/lwip/apps/sntp_opts.h @@ -165,10 +165,10 @@ #endif /** SNTP update delay - in milliseconds - * Default is 1 hour. Must not be beolw 60 seconds by specification (i.e. 60000) + * Default is 6 hours. Must not be below 60 seconds by specification (i.e. 60000) */ #if !defined SNTP_UPDATE_DELAY || defined __DOXYGEN__ -#define SNTP_UPDATE_DELAY 3600000 +#define SNTP_UPDATE_DELAY 3600000 * 6 #endif /** SNTP macro to get system time, used with SNTP_CHECK_RESPONSE >= 2