ci/lwip: Use 2 SNTP public servers in CI config

This commit is contained in:
David Cermak
2022-07-01 07:19:12 +02:00
committed by David Čermák
parent 100ee84b0f
commit d06d7deacd
2 changed files with 4 additions and 0 deletions

View File

@@ -185,6 +185,8 @@ static void initialize_sntp(void)
#else /* LWIP_DHCP_GET_NTP_SRV && (SNTP_MAX_SERVERS > 1) */ #else /* LWIP_DHCP_GET_NTP_SRV && (SNTP_MAX_SERVERS > 1) */
// otherwise, use DNS address from a pool // otherwise, use DNS address from a pool
sntp_setservername(0, CONFIG_SNTP_TIME_SERVER); sntp_setservername(0, CONFIG_SNTP_TIME_SERVER);
sntp_setservername(1, "pool.ntp.org"); // set the secondary NTP server (will be used only if SNTP_MAX_SERVERS > 1)
#endif #endif
sntp_set_time_sync_notification_cb(time_sync_notification_cb); sntp_set_time_sync_notification_cb(time_sync_notification_cb);

View File

@@ -0,0 +1,2 @@
CONFIG_SNTP_TIME_SERVER="time.windows.com"
CONFIG_LWIP_SNTP_MAX_SERVERS=2