From ef228df5fe5cf855c184320284e329bc1bb0d503 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 15 May 2024 14:21:13 -0700 Subject: [PATCH] Update src/darwin/Framework/CHIP/MTRDevice.mm Co-authored-by: Boris Zbarsky --- src/darwin/Framework/CHIP/MTRDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 702d3d78c1119c..97dcfe5e68a674 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -948,7 +948,7 @@ - (BOOL)_deviceUsesThread // Device is thread-enabled if there is a Thread Network Diagnostics cluster on endpoint 0 for (MTRClusterPath * path in [self _knownClusters]) { - if (path.endpoint.unsignedShortValue != 0) { + if (path.endpoint.unsignedShortValue != kRootEndpointId) { continue; }