From e5e563bd6e49f6943ecb338e09dc4f1f8b89c6df Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Mon, 27 Oct 2025 09:01:46 -0700 Subject: [PATCH] Remove debug code which broke static IPs Fixes #3226 As part of debugging stress-test failures for the CYW43 start/stop, the netif was cleared on begin(). This removes any preset static IPs, breaking the AP mode and STA move w/static IPs. Remove that debug clear. --- libraries/lwIP_Ethernet/src/LwipIntfDev.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/lwIP_Ethernet/src/LwipIntfDev.h b/libraries/lwIP_Ethernet/src/LwipIntfDev.h index cb90c8fdd..b6d65a8c3 100644 --- a/libraries/lwIP_Ethernet/src/LwipIntfDev.h +++ b/libraries/lwIP_Ethernet/src/LwipIntfDev.h @@ -349,8 +349,6 @@ bool LwipIntfDev::begin(const uint8_t* macAddress, const uint16_t mtu) { lwip_init(); __startEthernetContext(); - memset(&_netif, 0, sizeof(_netif)); - if (RawDev::needsSPI()) { _spiUnit.begin(); // Set SPI clocks/etc. per request, doesn't seem to be direct way other than a fake transaction