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 {