Merge pull request #543 from iranl/fix-cust-eth-phy-addr

Fix custom ethernet PHY addr save
This commit is contained in:
iranl
2024-11-28 22:16:54 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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"

View File

@@ -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());