Skip to content

Commit

Permalink
[Ameba] Updated RvcOperationalState::ErrorStateEnum::kUnknownEnumValu…
Browse files Browse the repository at this point in the history
…e to OperationalState::ErrorStateEnum::kUnknownEnumValue because it was removed, and added minor comments.
  • Loading branch information
pankore committed Oct 20, 2023
1 parent adb9b7c commit bdc8b88
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit bdc8b88

Please sign in to comment.