Skip to content

Commit 25ceb08

Browse files
Clear LWIP started flag on LWIPIntfDev::end (#905)
When moving between different modes or even WiFi.begin/ends, any setting of the IPs will fail because the internal flag _started was not cleared. Clear _started on a ::end call. Fixes #884
1 parent 205983e commit 25ceb08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ void LwipIntfDev<RawDev>::end() {
408408
RawDev::end();
409409
netif_remove(&_netif);
410410
memset(&_netif, 0, sizeof(_netif));
411+
_started = false;
411412
}
412413

413414

0 commit comments

Comments
 (0)