Skip to content

Commit

Permalink
use default function
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Nov 5, 2024
1 parent 38b2fb2 commit 3005430
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/data-model-provider/Provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Provider : public ProviderMetadataTree
///
/// It should be invoked when attribute managed by access override is changed but the change is not caused by
/// WriteAttribute(Such as LastNetworkingStatus in NetworkCommissioning cluster).
virtual void ReportAttributeChanged(const AttributePathParams & path) = 0;
virtual void ReportAttributeChanged(const AttributePathParams & path) {}

private:
InteractionModelContext mContext = { nullptr };
Expand Down
1 change: 0 additions & 1 deletion src/app/tests/test-interaction-model-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class TestImCustomDataModel : public DataModel::Provider
AttributeValueDecoder & decoder) override;
std::optional<DataModel::ActionReturnStatus> Invoke(const DataModel::InvokeRequest & request,
chip::TLV::TLVReader & input_arguments, CommandHandler * handler) override;
void ReportAttributeChanged(const AttributePathParams & path) override {}

EndpointId FirstEndpoint() override;
EndpointId NextEndpoint(EndpointId before) override;
Expand Down

0 comments on commit 3005430

Please sign in to comment.