Skip to content

Commit

Permalink
Update src/darwin/Framework/CHIP/MTRDevice.mm
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
woody-apple and bzbarsky-apple authored May 15, 2024
1 parent 3193dd8 commit ef228df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ef228df

Please sign in to comment.