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
This commit is contained in:
parent
205983e206
commit
25ceb08f93
1 changed files with 1 additions and 0 deletions
|
|
@ -408,6 +408,7 @@ void LwipIntfDev<RawDev>::end() {
|
|||
RawDev::end();
|
||||
netif_remove(&_netif);
|
||||
memset(&_netif, 0, sizeof(_netif));
|
||||
_started = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue