earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 boards
GNU Lesser General Public License v2.1
1.92k stars 402 forks source link

Protect againt calling LWIP_Ethernet::begin twice #2158

Closed earlephilhower closed 3 months ago

earlephilhower commented 3 months ago

As seen in debug of #2149, if the LwipIntfDev is already _started, return false for a ::begin() call.

Also, protect netif_add/_remove on the very small possibilty of being called by LwipIntfDev devices while the CYW43 driver is doing work.