fixed default ethernet dhcp setting
This commit is contained in:
parent
49bab0ea5c
commit
51db5691ce
2
Kconfig
2
Kconfig
|
|
@ -357,7 +357,7 @@ menu "WebGUIApp"
|
|||
|
||||
config WEBGUIAPP_ETHERNET_DHCP_DEFAULT
|
||||
bool "Default Ethernet DHCP client on"
|
||||
default n
|
||||
default y
|
||||
|
||||
config USE_INTERNAL_ETHERNET
|
||||
depends on IDF_TARGET_ESP32
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ Conf->ethSettings.Flags1.bIsETHEnabled = CONFIG_WEBGUIAPP_ETHERNET_ON;
|
|||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_ETH_IP_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.IPAddr);
|
||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_ETH_MASK_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.Mask);
|
||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_ETH_GATEWAY_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.Gateway);
|
||||
//Conf->ethSettings.Flags1.bIsDHCPEnabled = CONFIG_WEBGUIAPP_ETHERNET_DHCP_ON ;
|
||||
Conf->ethSettings.Flags1.bIsDHCPEnabled = CONFIG_WEBGUIAPP_ETHERNET_DHCP_DEFAULT;
|
||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS1_ADDRESS_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.DNSAddr1);
|
||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS2_ADDRESS_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.DNSAddr2);
|
||||
esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS3_ADDRESS_DEFAULT, (esp_ip4_addr_t*) &Conf->ethSettings.DNSAddr3);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user