fix config default wifi dhcp setting
This commit is contained in:
parent
42ec01f59e
commit
5b3fbbba7f
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5342a39a179a4dddede680615bf4694755d2a59d
|
Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39
|
||||||
|
|
@ -289,8 +289,9 @@ static void ResetSysConfig(SYS_CONFIG *Conf)
|
||||||
sizeof(CONFIG_WEBGUIAPP_WIFI_SSID_STA));
|
sizeof(CONFIG_WEBGUIAPP_WIFI_SSID_STA));
|
||||||
memcpy(Conf->wifiSettings.InfSecurityKey, CONFIG_WEBGUIAPP_WIFI_KEY_STA,
|
memcpy(Conf->wifiSettings.InfSecurityKey, CONFIG_WEBGUIAPP_WIFI_KEY_STA,
|
||||||
sizeof(CONFIG_WEBGUIAPP_WIFI_KEY_STA));
|
sizeof(CONFIG_WEBGUIAPP_WIFI_KEY_STA));
|
||||||
|
#if CONFIG_WEBGUIAPP_WIFI_DHCP_ON
|
||||||
Conf->wifiSettings.Flags1.bIsDHCPEnabled = CONFIG_WEBGUIAPP_WIFI_DHCP_ON;
|
Conf->wifiSettings.Flags1.bIsDHCPEnabled = true;
|
||||||
|
#endif
|
||||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS1_ADDRESS_DEFAULT,
|
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS1_ADDRESS_DEFAULT,
|
||||||
(esp_ip4_addr_t*) &Conf->wifiSettings.DNSAddr1);
|
(esp_ip4_addr_t*) &Conf->wifiSettings.DNSAddr1);
|
||||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS2_ADDRESS_DEFAULT,
|
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS2_ADDRESS_DEFAULT,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user