LAN8720 fix
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#define NUKI_HUB_VERSION "9.01"
|
#define NUKI_HUB_VERSION "9.01"
|
||||||
#define NUKI_HUB_BUILD "unknownbuildnr"
|
#define NUKI_HUB_BUILD "unknownbuildnr"
|
||||||
#define NUKI_HUB_DATE "2024-08-16"
|
#define NUKI_HUB_DATE "2024-08-17"
|
||||||
|
|
||||||
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
||||||
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
||||||
|
|||||||
@@ -132,11 +132,12 @@ void EthernetDevice::initialize()
|
|||||||
{
|
{
|
||||||
Log->println(F("Ethernet hardware Initialized"));
|
Log->println(F("Ethernet hardware Initialized"));
|
||||||
|
|
||||||
if(!_ipConfiguration->dhcpEnabled())
|
if(_useSpi && !_ipConfiguration->dhcpEnabled())
|
||||||
{
|
{
|
||||||
ETH.config(_ipConfiguration->ipAddress(), _ipConfiguration->defaultGateway(), _ipConfiguration->subnet(), _ipConfiguration->dnsServer());
|
ETH.config(_ipConfiguration->ipAddress(), _ipConfiguration->defaultGateway(), _ipConfiguration->subnet(), _ipConfiguration->dnsServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Network.onEvent([&](arduino_event_id_t event, arduino_event_info_t info)
|
Network.onEvent([&](arduino_event_id_t event, arduino_event_info_t info)
|
||||||
{
|
{
|
||||||
switch (event) {
|
switch (event) {
|
||||||
@@ -188,11 +189,16 @@ void EthernetDevice::initialize()
|
|||||||
onDisconnected();
|
onDisconnected();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Log->print("ETH Event: ");
|
||||||
|
Log->println(event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else Log->println(F("Failed to initialize ethernet hardware"));
|
else
|
||||||
|
{
|
||||||
|
Log->println(F("Failed to initialize ethernet hardware"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EthernetDevice::reconfigure()
|
void EthernetDevice::reconfigure()
|
||||||
|
|||||||
Reference in New Issue
Block a user