From dcfffb81f7040012c875fd2de2a6ae495de24da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Wed, 19 Nov 2025 09:27:50 +0000 Subject: [PATCH] Revert "Workaround for unintentional reset on UpdateConfiguration (#362)" This reverts commit 1c1908d6bfbce24f268805e37f3c76d010b14113. --- .../NetworkInformation/NetworkInterface.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs b/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs index 2efceaa..3c5e72f 100644 --- a/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs +++ b/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs @@ -209,11 +209,8 @@ public void EnableDhcp() { try { - if (_startupAddressMode != AddressMode.DHCP) - { - _startupAddressMode = AddressMode.DHCP; - UpdateConfiguration((int)UpdateOperation.Dhcp); - } + _startupAddressMode = AddressMode.DHCP; + UpdateConfiguration((int)UpdateOperation.Dhcp); } finally {