Skip to content

Commit

Permalink
Fixed the ameba build of all-clusters-app.
Browse files Browse the repository at this point in the history
  • Loading branch information
hicklin committed Dec 11, 2023
1 parent 19a963e commit 4e9de50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void emberAfOperationalStateClusterInitCallback(chip::EndpointId endpointId)
static RvcOperationalState::Instance * gRvcOperationalStateInstance = nullptr;
static RvcOperationalStateDelegate * gRvcOperationalStateDelegate = nullptr;

RvcOperationalState::Instance * OperationalState::GetRVCOperationalStateInstance()
RvcOperationalState::Instance * RvcOperationalState::GetRvcOperationalStateInstance()
{
return gRvcOperationalStateInstance;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ CHIP_ERROR ManualRVCOperationalStateSetStateCommandHandler(int argc, char ** arg
uint32_t state = atoi(argv[0]);

CHIP_ERROR err;
err = GetRVCOperationalStateInstance()->SetOperationalState(state);
err = RvcOperationalState::GetRvcOperationalStateInstance()->SetOperationalState(state);

if (err != CHIP_NO_ERROR)
{
Expand Down Expand Up @@ -178,7 +178,7 @@ CHIP_ERROR ManualRVCOperationalStateSetErrorCommandHandler(int argc, char ** arg
break;
}

GetRVCOperationalStateInstance()->OnOperationalErrorDetected(err);
RvcOperationalState::GetRvcOperationalStateInstance()->OnOperationalErrorDetected(err);

return CHIP_NO_ERROR;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ namespace Clusters {
namespace OperationalState {

Instance * GetOperationalStateInstance();
Instance * GetRVCOperationalStateInstance();

// This is an application level delegate to handle operational state commands according to the specific business logic.
class GenericOperationalStateDelegateImpl : public Delegate
Expand Down Expand Up @@ -124,6 +123,8 @@ void Shutdown();

namespace RvcOperationalState {

Instance * GetRvcOperationalStateInstance();

// This is an application level delegate to handle operational state commands according to the specific business logic.
class RvcOperationalStateDelegate : public OperationalState::GenericOperationalStateDelegateImpl
{
Expand Down

0 comments on commit 4e9de50

Please sign in to comment.