Skip to content

Commit b7ae205

Browse files
committed
Fixed issue casued by a change in the way that registrations are made.
1 parent 35f5908 commit b7ae205

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/clusters/service-area-server/service-area-server.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Instance::Instance(Delegate * aDelegate, EndpointId aEndpointId, BitMask<Feature
5656

5757
Instance::~Instance()
5858
{
59-
CommandHandlerInterfaceRegistry::UnregisterCommandHandler(this);
60-
unregisterAttributeAccessOverride(this);
59+
CommandHandlerInterfaceRegistry::Instance().UnregisterCommandHandler(this);
60+
AttributeAccessInterfaceRegistry::Instance().Unregister(this);
6161
}
6262

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

71-
ReturnErrorOnFailure(CommandHandlerInterfaceRegistry::RegisterCommandHandler(this));
71+
ReturnErrorOnFailure(CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(this));
7272

73-
VerifyOrReturnError(registerAttributeAccessOverride(this), CHIP_ERROR_INCORRECT_STATE);
73+
VerifyOrReturnError(AttributeAccessInterfaceRegistry::Instance().Register(this), CHIP_ERROR_INCORRECT_STATE);
7474

7575
return mDelegate->Init();
7676
}

0 commit comments

Comments
 (0)