Use smooth SNTP sync mode
This commit is contained in:
parent
06966c2ae6
commit
371238581f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user