Skip to content

Commit e5e563b

Browse files
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.
1 parent 0affea4 commit e5e563b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ bool LwipIntfDev<RawDev>::begin(const uint8_t* macAddress, const uint16_t mtu) {
349349
lwip_init();
350350
__startEthernetContext();
351351

352-
memset(&_netif, 0, sizeof(_netif));
353-
354352
if (RawDev::needsSPI()) {
355353
_spiUnit.begin();
356354
// Set SPI clocks/etc. per request, doesn't seem to be direct way other than a fake transaction

0 commit comments

Comments
 (0)