We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8a797 commit 1c1908dCopy full SHA for 1c1908d
nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs
@@ -209,8 +209,11 @@ public void EnableDhcp()
209
{
210
try
211
212
- _startupAddressMode = AddressMode.DHCP;
213
- UpdateConfiguration((int)UpdateOperation.Dhcp);
+ if (_startupAddressMode != AddressMode.DHCP)
+ {
214
+ _startupAddressMode = AddressMode.DHCP;
215
+ UpdateConfiguration((int)UpdateOperation.Dhcp);
216
+ }
217
}
218
finally
219
0 commit comments