1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Do not abort ethernet startup on W5100

This commit is contained in:
Harald Barth 2022-11-06 21:32:54 +01:00
parent 4f19a60621
commit f1d445e056

View File

@ -60,17 +60,16 @@ EthernetInterface::EthernetInterface()
connected=false;
#ifdef IP_ADDRESS
Ethernet.begin(mac, IP_ADDRESS);
if (Ethernet.begin(mac, IP_ADDRESS) == 0)
#else
if (Ethernet.begin(mac) == 0)
#endif
{
DIAG(F("Ethernet.begin FAILED"));
return;
}
#endif
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
DIAG(F("Ethernet shield not found"));
return;
DIAG(F("Ethernet shield not found or W5100"));
}
unsigned long startmilli = millis();