move code to handle network events from anonymous to class method

This commit is contained in:
technyon
2024-08-18 06:40:27 +02:00
parent b346977022
commit f26f9f6753
5 changed files with 76 additions and 56 deletions

View File

@@ -161,7 +161,10 @@ void NukiNetwork::setupDevice()
break;
case 11:
Log->println(F("Custom LAN Module"));
if(_preferences->getInt(preference_network_custom_phy, 0) > 0) _networkDeviceType = NetworkDeviceType::CUSTOM;
if(_preferences->getInt(preference_network_custom_phy, 0) > 0)
{
_networkDeviceType = NetworkDeviceType::CUSTOM;
}
else
{
Log->println(F("Custom LAN Module not setup correctly, falling back to Wi-Fi"));