mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
Do not abort ethernet startup on W5100
This commit is contained in:
parent
4f19a60621
commit
f1d445e056
@ -60,17 +60,16 @@ EthernetInterface::EthernetInterface()
|
|||||||
connected=false;
|
connected=false;
|
||||||
|
|
||||||
#ifdef IP_ADDRESS
|
#ifdef IP_ADDRESS
|
||||||
Ethernet.begin(mac, IP_ADDRESS);
|
if (Ethernet.begin(mac, IP_ADDRESS) == 0)
|
||||||
#else
|
#else
|
||||||
if (Ethernet.begin(mac) == 0)
|
if (Ethernet.begin(mac) == 0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
DIAG(F("Ethernet.begin FAILED"));
|
DIAG(F("Ethernet.begin FAILED"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
|
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
|
||||||
DIAG(F("Ethernet shield not found"));
|
DIAG(F("Ethernet shield not found or W5100"));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long startmilli = millis();
|
unsigned long startmilli = millis();
|
||||||
|
Loading…
Reference in New Issue
Block a user