From a7a8aaf0d8fccb83b93bf2fef62a32a61eb16732 Mon Sep 17 00:00:00 2001 From: iranl Date: Thu, 28 Nov 2024 22:15:42 +0100 Subject: [PATCH] Fix custom ethernet PHY addr save --- src/Config.h | 2 +- src/WebCfgServer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.h b/src/Config.h index c095044..226eee8 100644 --- a/src/Config.h +++ b/src/Config.h @@ -4,7 +4,7 @@ #define NUKI_HUB_VERSION "9.03" #define NUKI_HUB_BUILD "unknownbuildnr" -#define NUKI_HUB_DATE "2024-11-25" +#define NUKI_HUB_DATE "2024-11-28" #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/WebCfgServer.cpp b/src/WebCfgServer.cpp index 1f4b0de..4bf2f25 100644 --- a/src/WebCfgServer.cpp +++ b/src/WebCfgServer.cpp @@ -1586,7 +1586,7 @@ bool WebCfgServer::processArgs(PsychicRequest *request, String& message) } else if(key == "NWCUSTADDR") { - if(_preferences->getInt(preference_network_custom_addr, 0) != value.toInt()) + if(_preferences->getInt(preference_network_custom_addr, -1) != value.toInt()) { networkReconfigure = true; _preferences->putInt(preference_network_custom_addr, value.toInt());