Skip to content

Commit

Permalink
Merge branch 'bugfix/sntp_cpp_compat_v5.1' into 'release/v5.1'
Browse files Browse the repository at this point in the history
esp_netif: Fix invalid conversion from int to enumeration in c++ build (GitHub PR) (v5.1)

See merge request espressif/esp-idf!25041
  • Loading branch information
jack0c committed Sep 8, 2023
2 parents c1d8013 + 597810b commit ef451ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/esp_netif/include/esp_netif_sntp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
}

/**
Expand Down

0 comments on commit ef451ca

Please sign in to comment.