Skip to content

Commit 2adaa32

Browse files
authored
Revert Workaround for unintentional reset on UpdateConfiguration (#363)
1 parent 1c1908d commit 2adaa32

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,8 @@ public void EnableDhcp()
209209
{
210210
try
211211
{
212-
if (_startupAddressMode != AddressMode.DHCP)
213-
{
214-
_startupAddressMode = AddressMode.DHCP;
215-
UpdateConfiguration((int)UpdateOperation.Dhcp);
216-
}
212+
_startupAddressMode = AddressMode.DHCP;
213+
UpdateConfiguration((int)UpdateOperation.Dhcp);
217214
}
218215
finally
219216
{

0 commit comments

Comments
 (0)