Skip to content

Commit

Permalink
Update examples/all-clusters-app/ameba/main/static-supported-modes-ma…
Browse files Browse the repository at this point in the history
…nager.cpp

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
du48s03 and bzbarsky-apple authored Nov 8, 2021
1 parent ce88fb6 commit df704b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const StaticSupportedModesManager StaticSupportedModesManager::instance = Static

const SupportedModesManager::ModeOptionsProvider StaticSupportedModesManager::getModeOptionsProvider(EndpointId endpointId) const
{
for (size_t i = 0; i < EMBER_AF_MODE_SELECT_CLUSTER_SERVER_ENDPOINT_COUNT; ++i)
{
const EndpointSpanPair & endpointSpanPair = supportedOptionsByEndpoints[i];
for (auto & endpointSpanPair : supportedOptionsByEndpoints)
if (endpointSpanPair.mEndpointId == endpointId)
{
return ModeOptionsProvider(endpointSpanPair.mSpan.data(), endpointSpanPair.mSpan.end());
Expand Down

0 comments on commit df704b6

Please sign in to comment.