Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d15b0d2

Browse files
committedJan 13, 2025·
Fix typo
1 parent 36a65b8 commit d15b0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/clusters/descriptor/descriptor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ CHIP_ERROR DescriptorAttrAccess::ReadTagListAttribute(EndpointId endpoint, Attri
109109
CHIP_ERROR DescriptorAttrAccess::ReadPartsAttribute(EndpointId endpoint, AttributeValueEncoder & aEncoder)
110110
{
111111
auto endpoints = InteractionModelEngine::GetInstance()->GetDataModelProvider()->Endpoints();
112-
// auto endpointInfo = InteractionModelEngine::GetInstance()->GetDataModelProvider()->GetEndpointInfo(endpoint);
113112
if (endpoint == 0x00)
114113
{
115114
return aEncoder.EncodeList([&endpoints](const auto & encoder) -> CHIP_ERROR {
@@ -125,14 +124,15 @@ CHIP_ERROR DescriptorAttrAccess::ReadPartsAttribute(EndpointId endpoint, Attribu
125124
});
126125
}
127126

128-
// fint the given endpoint
127+
// find the given endpoint
129128
unsigned idx = 0;
130129
while (idx < endpoints.size())
131130
{
132131
if (endpoints[idx].id == endpoint)
133132
{
134133
break;
135134
}
135+
idx++;
136136
}
137137
if (idx >= endpoints.size())
138138
{

0 commit comments

Comments
 (0)
Please sign in to comment.