sntp: Add API to set update interval

Closes: https://github.com/espressif/esp-idf/issues/4437
Closes: IDFGH-2298
This commit is contained in:
Konstantin Kondrashov
2019-12-20 18:26:23 +08:00
committed by Mahavir Jain
parent 28314f9bb0
commit 98495e5939
3 changed files with 57 additions and 1 deletions

View File

@@ -844,7 +844,10 @@
*/
#define SNTP_SERVER_DNS 1
#define SNTP_UPDATE_DELAY CONFIG_LWIP_SNTP_UPDATE_DELAY
// It disables a check of SNTP_UPDATE_DELAY it is done in sntp_set_sync_interval
#define SNTP_SUPPRESS_DELAY_CHECK
#define SNTP_UPDATE_DELAY (sntp_get_sync_interval())
#define SNTP_SET_SYSTEM_TIME_US(sec, us) \
do { \