From 46b26a47ff2da2864e29e90b1a3b51cfa8788a69 Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Thu, 30 Jun 2022 19:45:37 +0530 Subject: [PATCH] Adds fix for warning on ESP32 toolchain --- src/inet/UDPEndPointImplLwIP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet/UDPEndPointImplLwIP.cpp b/src/inet/UDPEndPointImplLwIP.cpp index 62a2a5549e18ef..a81b3922492ce2 100644 --- a/src/inet/UDPEndPointImplLwIP.cpp +++ b/src/inet/UDPEndPointImplLwIP.cpp @@ -133,7 +133,7 @@ CHIP_ERROR UDPEndPointImplLwIP::LwIPBindInterface(struct udp_pcb * aUDP, Interfa InterfaceId UDPEndPointImplLwIP::GetBoundInterface() const { #if HAVE_LWIP_UDP_BIND_NETIF - return InterfaceId(netif_get_by_index(mUDP->netif_idx + 1)); + return InterfaceId(netif_get_by_index(++(mUDP->netif_idx))); #else return InterfaceId(mUDP->intf_filter); #endif