Skip to content

Commit

Permalink
Fix ESP32 Dnssd compile error (#18869)
Browse files Browse the repository at this point in the history
../../../../../../config/esp32/third_party/connectedhomeip/src/platform/ESP32/DnssdImpl.cpp: In function 'CHIP_ERROR chip::Dnssd::OnResolveQuerySrvDone(chip::Dnssd::ResolveContext*)':
../../../../../../config/esp32/third_party/connectedhomeip/src/platform/ESP32/DnssdImpl.cpp:376:65: error: invalid types 'size_t {aka unsigned int}[size_t {aka unsigned int}]' for array subscript
                     GetIPAddress(ctx->mAddressCount[addressIndex], addr);
  • Loading branch information
dnicoara authored and pull[bot] committed Jul 18, 2022
1 parent 0bb0139 commit c6230c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/ESP32/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ CHIP_ERROR OnResolveQuerySrvDone(ResolveContext * ctx)
auto * addr = ctx->mResult->addr;
while (addr)
{
GetIPAddress(ctx->mAddressCount[addressIndex], addr);
GetIPAddress(ctx->mAddresses[addressIndex], addr);
addressIndex++;
addr = addr->next;
}
Expand Down

0 comments on commit c6230c4

Please sign in to comment.