Update ntp.

This commit is contained in:
Colin 2025-12-28 23:13:26 +08:00
parent c92f4ebbcc
commit 4cd1a1cb1e
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ time_t now;
struct tm timeinfo;
static void get_time_task() {
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("cn.pool.ntp.org");
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("ntp.aliyun.com");
esp_netif_sntp_init(&config);
// wait for time to be set
int retry = 0;