Skip to content

Commit 93ddef9

Browse files
committed
Ooops I forgot an attribute
1 parent 5d09b69 commit 93ddef9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/clusters/actions-server/ActionsCluster.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ DataModel::ActionReturnStatus ActionsCluster::ReadAttribute(const DataModel::Rea
7777

7878
switch (request.path.mAttributeId)
7979
{
80+
case ClusterRevision::Id:
81+
// Encode the generated revision constant for the Actions cluster
82+
return encoder.Encode(Actions::kRevision);
83+
84+
case FeatureMap::Id:
85+
// The Actions cluster currently doesn't use feature maps, so we encode 0
86+
return encoder.Encode(static_cast<uint32_t>(0));
87+
8088
case ActionList::Id: {
8189
CHIP_ERROR err = encoder.EncodeList([this, &request](const auto & listEncoder) -> CHIP_ERROR {
8290
return this->ReadActionListAttribute(request, listEncoder);

0 commit comments

Comments
 (0)