From 2ff12460dd59be26ea485daf3ace5ecac4bb14a0 Mon Sep 17 00:00:00 2001 From: movsb Date: Fri, 12 May 2023 15:08:53 +0800 Subject: [PATCH] fix(c++): invalid conversion from int to enumeration --- components/esp_netif/include/esp_netif_sntp.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/components/esp_netif/include/esp_netif_sntp.h b/components/esp_netif/include/esp_netif_sntp.h index 96f9f58df5..87f1245d5a 100644 --- a/components/esp_netif/include/esp_netif_sntp.h +++ b/components/esp_netif/include/esp_netif_sntp.h @@ -44,16 +44,16 @@ typedef void (*esp_sntp_time_cb_t)(struct timeval *tv); * */ #define ESP_NETIF_SNTP_DEFAULT_CONFIG_MULTIPLE(servers_in_list, list_of_servers) { \ - .smooth_sync = false, \ - .server_from_dhcp = false, \ - .wait_for_sync = true, \ - .start = true, \ - .sync_cb = NULL, \ - .renew_servers_after_new_IP = false, \ - .ip_event_to_renew = 0, \ - .index_of_first_server = 0, \ - .num_of_servers = (servers_in_list), \ - .servers = list_of_servers, \ + .smooth_sync = false, \ + .server_from_dhcp = false, \ + .wait_for_sync = true, \ + .start = true, \ + .sync_cb = NULL, \ + .renew_servers_after_new_IP = false, \ + .ip_event_to_renew = IP_EVENT_STA_GOT_IP, \ + .index_of_first_server = 0, \ + .num_of_servers = (servers_in_list), \ + .servers = list_of_servers, \ } /**