diff --git a/src/Config.h b/src/Config.h index a389afd..d777c11 100644 --- a/src/Config.h +++ b/src/Config.h @@ -4,7 +4,7 @@ #define NUKI_HUB_VERSION "9.01" #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_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json" diff --git a/src/networkDevices/EthernetDevice.cpp b/src/networkDevices/EthernetDevice.cpp index 9c61454..87d889d 100644 --- a/src/networkDevices/EthernetDevice.cpp +++ b/src/networkDevices/EthernetDevice.cpp @@ -132,11 +132,12 @@ void EthernetDevice::initialize() { Log->println(F("Ethernet hardware Initialized")); - if(!_ipConfiguration->dhcpEnabled()) + if(_useSpi && !_ipConfiguration->dhcpEnabled()) { ETH.config(_ipConfiguration->ipAddress(), _ipConfiguration->defaultGateway(), _ipConfiguration->subnet(), _ipConfiguration->dnsServer()); } + Network.onEvent([&](arduino_event_id_t event, arduino_event_info_t info) { switch (event) { @@ -188,11 +189,16 @@ void EthernetDevice::initialize() onDisconnected(); break; default: + Log->print("ETH Event: "); + Log->println(event); break; } }); } - else Log->println(F("Failed to initialize ethernet hardware")); + else + { + Log->println(F("Failed to initialize ethernet hardware")); + } } void EthernetDevice::reconfigure()