Skip to content

Commit 26ea0ef

Browse files
committed
Resolved the build failure for m5-stack ipv6 only test
1 parent 4048e57 commit 26ea0ef

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/platform/esp32/Rpc.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,15 @@ class Esp32WiFi final : public WiFi
197197
return pw::OkStatus();
198198
}
199199

200+
#if CHIP_DEVICE_CONFIG_ENABLE_IPV4
200201
pw::Status GetIP4Address(const pw_protobuf_Empty & request, chip_rpc_IP4Address & response) override
201202
{
202203
esp_netif_ip_info_t ip_info;
203204
PW_TRY(EspToPwStatus(esp_netif_get_ip_info(esp_netif_get_handle_from_ifkey("WIFI_STA_DEF"), &ip_info)));
204205
snprintf(response.address, sizeof(response.address), IPSTR, IP2STR(&ip_info.ip));
205206
return pw::OkStatus();
206207
}
208+
#endif
207209

208210
pw::Status GetIP6Address(const pw_protobuf_Empty & request, chip_rpc_IP6Address & response) override
209211
{

scripts/build/builders/esp32.py

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def generate(self):
197197
if not self.enable_ipv4:
198198
self._Execute(
199199
['bash', '-c', 'echo -e "\\nCONFIG_DISABLE_IPV4=y\\n" >>%s' % shlex.quote(defaults_out)])
200+
self._Execute(
201+
['bash', '-c', 'echo -e "\\nCONFIG_LWIP_IPV4=n\\n" >>%s' % shlex.quote(defaults_out)])
200202

201203
if self.enable_insights_trace:
202204
insights_flag = 'y'

0 commit comments

Comments
 (0)