Skip to content

Commit

Permalink
Merge branch 'improve_AreaStructWrapper' into address_comments_from_r…
Browse files Browse the repository at this point in the history
…eviews
  • Loading branch information
hicklin committed Aug 8, 2024
2 parents 258e249 + b7ae205 commit 2ee994e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/clusters/service-area-server/service-area-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Instance::Instance(Delegate * aDelegate, EndpointId aEndpointId, BitMask<Feature

Instance::~Instance()
{
CommandHandlerInterfaceRegistry::UnregisterCommandHandler(this);
unregisterAttributeAccessOverride(this);
CommandHandlerInterfaceRegistry::Instance().UnregisterCommandHandler(this);
AttributeAccessInterfaceRegistry::Instance().Unregister(this);
}

CHIP_ERROR Instance::Init()
Expand All @@ -68,10 +68,10 @@ CHIP_ERROR Instance::Init()
VerifyOrReturnError(emberAfContainsServer(mEndpointId, Id), CHIP_ERROR_INVALID_ARGUMENT,
ChipLogError(Zcl, "Service Area: The cluster with Id %lu was not enabled in zap.", long(Id)));

ReturnErrorOnFailure(CommandHandlerInterfaceRegistry::RegisterCommandHandler(this));
ReturnErrorOnFailure(CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(this));

VerifyOrReturnError(AttributeAccessInterfaceRegistry::Instance().Register(this), CHIP_ERROR_INCORRECT_STATE);

VerifyOrReturnError(registerAttributeAccessOverride(this), CHIP_ERROR_INCORRECT_STATE);
;
return mDelegate->Init();
}

Expand Down

0 comments on commit 2ee994e

Please sign in to comment.