Skip to content

Commit

Permalink
Adds fix for warning on ESP32 toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Jul 7, 2022
1 parent 841e563 commit b710538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/UDPEndPointImplLwIP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b710538

Please sign in to comment.