From bdc8b88411fc323a25d3c0ecb3b80732fbd5362b Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:54:38 +0800 Subject: [PATCH] [Ameba] Updated RvcOperationalState::ErrorStateEnum::kUnknownEnumValue to OperationalState::ErrorStateEnum::kUnknownEnumValue because it was removed, and added minor comments. --- .../main/include/ManualOperationalStateCommand.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/all-clusters-app/ameba/main/include/ManualOperationalStateCommand.h b/examples/all-clusters-app/ameba/main/include/ManualOperationalStateCommand.h index dbe07ade006f9f..1f6d899b59e828 100644 --- a/examples/all-clusters-app/ameba/main/include/ManualOperationalStateCommand.h +++ b/examples/all-clusters-app/ameba/main/include/ManualOperationalStateCommand.h @@ -92,14 +92,14 @@ CHIP_ERROR ManualOperationalStateSetErrorCommandHandler(int argc, char ** argv) switch (error) { - case to_underlying(OperationalState::ErrorStateEnum::kNoError): - case to_underlying(OperationalState::ErrorStateEnum::kUnableToStartOrResume): - case to_underlying(OperationalState::ErrorStateEnum::kUnableToCompleteOperation): - case to_underlying(OperationalState::ErrorStateEnum::kCommandInvalidInState): + case to_underlying(OperationalState::ErrorStateEnum::kNoError): // 0x00, 0 + case to_underlying(OperationalState::ErrorStateEnum::kUnableToStartOrResume): // 0x01, 1 + case to_underlying(OperationalState::ErrorStateEnum::kUnableToCompleteOperation): // 0x02, 2 + case to_underlying(OperationalState::ErrorStateEnum::kCommandInvalidInState): // 0x03, 3 err.errorStateID = error; break; default: - err.errorStateID = to_underlying(OperationalState::ErrorStateEnum::kUnknownEnumValue); + err.errorStateID = to_underlying(OperationalState::ErrorStateEnum::kUnknownEnumValue); // 0x04, 4 break; } @@ -174,7 +174,7 @@ CHIP_ERROR ManualRVCOperationalStateSetErrorCommandHandler(int argc, char ** arg err.errorStateID = error; break; default: - err.errorStateID = to_underlying(RvcOperationalState::ErrorStateEnum::kUnknownEnumValue); + err.errorStateID = to_underlying(OperationalState::ErrorStateEnum::kUnknownEnumValue); // 0x04, 4 break; }