mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/sntp_cpp_compat' into 'master'
esp_netif: Fix invalid conversion from int to enumeration in c++ build (GitHub PR) Closes IDFGH-10115 See merge request espressif/esp-idf!23867
This commit is contained in:
commit
914652c804
@ -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) { \
|
#define ESP_NETIF_SNTP_DEFAULT_CONFIG_MULTIPLE(servers_in_list, list_of_servers) { \
|
||||||
.smooth_sync = false, \
|
.smooth_sync = false, \
|
||||||
.server_from_dhcp = false, \
|
.server_from_dhcp = false, \
|
||||||
.wait_for_sync = true, \
|
.wait_for_sync = true, \
|
||||||
.start = true, \
|
.start = true, \
|
||||||
.sync_cb = NULL, \
|
.sync_cb = NULL, \
|
||||||
.renew_servers_after_new_IP = false, \
|
.renew_servers_after_new_IP = false, \
|
||||||
.ip_event_to_renew = 0, \
|
.ip_event_to_renew = IP_EVENT_STA_GOT_IP, \
|
||||||
.index_of_first_server = 0, \
|
.index_of_first_server = 0, \
|
||||||
.num_of_servers = (servers_in_list), \
|
.num_of_servers = (servers_in_list), \
|
||||||
.servers = list_of_servers, \
|
.servers = list_of_servers, \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user