From 88a1006942f814d402ae87fe8ebc3282e6db0a4b Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 12 Dec 2023 16:59:50 +0000 Subject: [PATCH] Restyled by clang-format --- examples/rvc-app/rvc-common/src/rvc-device.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/rvc-app/rvc-common/src/rvc-device.cpp b/examples/rvc-app/rvc-common/src/rvc-device.cpp index 369c093e416631..6b8ba800057eea 100644 --- a/examples/rvc-app/rvc-common/src/rvc-device.cpp +++ b/examples/rvc-app/rvc-common/src/rvc-device.cpp @@ -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 @@ -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 {