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 f98b0fc commit 5114c7fCopy full SHA for 5114c7f
connectivity/lwipstack/source/LWIPInterface.cpp
@@ -169,8 +169,12 @@ nsapi_error_t LWIP::Interface::set_dhcp()
169
170
#if LWIP_DHCP
171
if (dhcp_has_to_be_set) {
172
+ if(dhcp_started) {
173
+ dhcp_stop(&netif);
174
+ dhcp_started = false;
175
+ }
176
+
177
err_t err = dhcp_start(&netif);
- dhcp_has_to_be_set = false;
178
if (err) {
179
connected = NSAPI_STATUS_DISCONNECTED;
180
if (client_callback) {
0 commit comments