Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scenes]Added the level-control cluster handler for scenes EFS #28836

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Applied change to allow attribute count increase in the futur
  • Loading branch information
lpbeliveau-silabs committed Aug 24, 2023
commit 0c19af72886743b9d0a3f86761fd74b2eebb598f
6 changes: 3 additions & 3 deletions src/app/clusters/level-control/level-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class DefaultLevelControlSceneHandler : public scenes::DefaultSceneHandlerImpl
uint16_t frequency;
VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == Attributes::CurrentFrequency::Get(endpoint, &frequency),
CHIP_ERROR_READ_FAILED);
pairs[1].attributeID = Attributes::CurrentFrequency::Id;
pairs[1].attributeValue = frequency;
attributeCount = 2;
pairs[attributeCount].attributeID = Attributes::CurrentFrequency::Id;
pairs[attributeCount].attributeValue = frequency;
attributeCount++;
}

app::DataModel::List<AttributeValuePair> attributeValueList(pairs, attributeCount);
Expand Down