Fix ESP32 ethernet gateway et al

Fix ESP32 ethernet gateway et al (#8503)
This commit is contained in:
Theo Arends 2020-06-17 14:32:48 +02:00
parent 5ec694b3f3
commit 019400d77d
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ void EthernetEvent(WiFiEvent_t event) {
Serial.print(ETH.linkSpeed());
Serial.println("Mbps");
*/
Settings.ip_address[1] = (uint32_t)ETH.gatewayIP();
Settings.ip_address[2] = (uint32_t)ETH.subnetMask();
Settings.ip_address[3] = (uint32_t)ETH.dnsIP();
global_state.eth_down = 0;
break;
case SYSTEM_EVENT_ETH_DISCONNECTED: