Skip to content

Commit

Permalink
Also assert in MatterReportingAttributeChangeCallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Feb 15, 2022
1 parent c9b207c commit e5e1a80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/util/ember-compatibility-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <lib/support/CodeUtils.h>
#include <lib/support/SafeInt.h>
#include <lib/support/TypeTraits.h>
#include <platform/LockTracker.h>
#include <protocols/interaction_model/Constants.h>

#include <app-common/zap-generated/att-storage.h>
Expand Down Expand Up @@ -1018,6 +1019,10 @@ void MatterReportingAttributeChangeCallback(EndpointId endpoint, ClusterId clust

void MatterReportingAttributeChangeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
{
// Attribute writes have asserted this already, but this assert should catch
// applications notifying about changes from their end.
assertChipStackLockedByCurrentThread();

ClusterInfo info;
info.mClusterId = clusterId;
info.mAttributeId = attributeId;
Expand Down

0 comments on commit e5e1a80

Please sign in to comment.