LAN8720: return critical failure if hardware not found

This commit is contained in:
technyon
2023-02-22 19:23:20 +01:00
parent b4df3e2e62
commit 9de86888a9
2 changed files with 11 additions and 7 deletions

View File

@@ -72,12 +72,12 @@ void Network::setupDevice()
}
else if(hardwareDetect == 3)
{
Log->print(F("W5500 on M5Stack Atom POE"));
Log->println(F("W5500 on M5Stack Atom POE"));
_networkDeviceType = NetworkDeviceType::W5500;
}
else if(hardwareDetect == 4)
{
Log->print(F("Olimex ESP32-POE / ESP-POE-ISO"));
Log->println(F("Olimex ESP32-POE / ESP-POE-ISO"));
_networkDeviceType = NetworkDeviceType::LAN8720;
}
else