From 371238581ff6852e90e9b1be74d9489696984efc Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Tue, 16 May 2023 23:02:41 +0100 Subject: [PATCH] Use smooth SNTP sync mode --- components/time/time_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/time/time_manager.c b/components/time/time_manager.c index bf4a933..b6738f8 100644 --- a/components/time/time_manager.c +++ b/components/time/time_manager.c @@ -179,7 +179,7 @@ void time_manager_init(void) char sntp_server[SETTINGS_MAX_VALUE_SIZE]; (void)settings_get_sntp_server(sntp_server, SETTINGS_MAX_VALUE_SIZE); - esp_sntp_set_sync_mode(SNTP_SYNC_MODE_IMMED); + esp_sntp_set_sync_mode(SNTP_SYNC_MODE_SMOOTH); esp_sntp_setoperatingmode(ESP_SNTP_OPMODE_POLL); esp_sntp_setservername(0, sntp_server); sntp_set_time_sync_notification_cb(sntp_sync_callback);