Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and hicklin committed Dec 12, 2023
1 parent ba47027 commit 88a1006
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions examples/rvc-app/rvc-common/src/rvc-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ void RvcDevice::HandleOpStateResumeCallback(Clusters::OperationalState::GenericO
switch (mOperationalStateInstance.GetCurrentOperationalState())
{
case to_underlying(RvcOperationalState::OperationalStateEnum::kCharging):
case to_underlying(RvcOperationalState::OperationalStateEnum::kDocked):
{
if (mRunModeInstance.GetCurrentMode() == RvcRunMode::ModeCleaning || mRunModeInstance.GetCurrentMode() == RvcRunMode::ModeMapping) {
case to_underlying(RvcOperationalState::OperationalStateEnum::kDocked): {
if (mRunModeInstance.GetCurrentMode() == RvcRunMode::ModeCleaning ||
mRunModeInstance.GetCurrentMode() == RvcRunMode::ModeMapping)
{
error = mOperationalStateInstance.SetOperationalState(to_underlying(OperationalState::OperationalStateEnum::kRunning));
}
else
Expand All @@ -122,10 +123,11 @@ void RvcDevice::HandleOpStateResumeCallback(Clusters::OperationalState::GenericO
}
}
break;
case to_underlying(OperationalState::OperationalStateEnum::kPaused):
{
if (mPausedState == to_underlying(RvcOperationalState::OperationalStateEnum::kSeekingCharger)) {
error = mOperationalStateInstance.SetOperationalState(to_underlying(RvcOperationalState::OperationalStateEnum::kSeekingCharger));
case to_underlying(OperationalState::OperationalStateEnum::kPaused): {
if (mPausedState == to_underlying(RvcOperationalState::OperationalStateEnum::kSeekingCharger))
{
error = mOperationalStateInstance.SetOperationalState(
to_underlying(RvcOperationalState::OperationalStateEnum::kSeekingCharger));
}
else
{
Expand Down

0 comments on commit 88a1006

Please sign in to comment.