Skip to content

Commit 3f85107

Browse files
committed
Compilation fix when IPV4 is disabled.
1 parent 9d56786 commit 3f85107

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
999999
// If the station interface has been assigned an IPv4 address, and has
10001000
// an IPv4 gateway, then presume that the device has IPv4 Internet
10011001
// connectivity.
1002+
#if LWIP_IPV4
10021003
if (!ip4_addr_isany_val(*netif_ip4_addr(netif)) && !ip4_addr_isany_val(*netif_ip4_gw(netif)))
10031004
{
10041005
haveIPv4Conn = true;
@@ -1013,6 +1014,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
10131014
IPAddress::FromString(addrStr, addr);
10141015
}
10151016
}
1017+
#endif
10161018

10171019
// Search among the IPv6 addresses assigned to the interface for a Global Unicast
10181020
// address (2000::/3) that is in the valid state. If such an address is found...

0 commit comments

Comments
 (0)