fix inital printing of IP address

This commit is contained in:
technyon
2024-07-07 14:08:24 +02:00
parent 53243fe045
commit da0390df63
6 changed files with 12 additions and 25 deletions

View File

@@ -112,17 +112,7 @@ bool EthLan8720Device::supportsEncryption()
bool EthLan8720Device::isConnected()
{
bool connected = ETH.linkUp();
if(_lastConnected == false && connected == true)
{
Serial.print(F("Ethernet connected. IP address: "));
Serial.println(ETH.localIP().toString());
}
_lastConnected = connected;
return connected;
return ETH.linkUp();
}
ReconnectStatus EthLan8720Device::reconnect()