make w5500 spi pins configurable

This commit is contained in:
technyon
2023-02-03 20:07:45 +01:00
parent 870af68f45
commit 13e7643b0d
8 changed files with 28 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ void Network::setupDevice()
_networkDeviceType = digitalRead(hardwareDetect) == HIGH ? NetworkDeviceType::WiFi : NetworkDeviceType::W5500;
}
}
_networkDeviceType = NetworkDeviceType::W5500;
switch(_networkDeviceType)
{
case NetworkDeviceType::W5500: