File tree 1 file changed +0
-18
lines changed
examples/all-clusters-app/all-clusters-common/src
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ CHIP_ERROR GenericOperationalStateDelegateImpl::GetOperationalPhaseAtIndex(size_
55
55
56
56
void GenericOperationalStateDelegateImpl::HandlePauseStateCallback (GenericOperationalError & err)
57
57
{
58
- OperationalState::OperationalStateEnum state =
59
- static_cast <OperationalState::OperationalStateEnum>(GetInstance ()->GetCurrentOperationalState ());
60
-
61
- if (state == OperationalState::OperationalStateEnum::kStopped || state == OperationalState::OperationalStateEnum::kError )
62
- {
63
- err.Set (to_underlying (OperationalState::ErrorStateEnum::kCommandInvalidInState ));
64
- return ;
65
- }
66
-
67
58
// placeholder implementation
68
59
auto error = GetInstance ()->SetOperationalState (to_underlying (OperationalState::OperationalStateEnum::kPaused ));
69
60
if (error == CHIP_NO_ERROR)
@@ -78,15 +69,6 @@ void GenericOperationalStateDelegateImpl::HandlePauseStateCallback(GenericOperat
78
69
79
70
void GenericOperationalStateDelegateImpl::HandleResumeStateCallback (GenericOperationalError & err)
80
71
{
81
- OperationalState::OperationalStateEnum state =
82
- static_cast <OperationalState::OperationalStateEnum>(GetInstance ()->GetCurrentOperationalState ());
83
-
84
- if (state == OperationalState::OperationalStateEnum::kStopped || state == OperationalState::OperationalStateEnum::kError )
85
- {
86
- err.Set (to_underlying (OperationalState::ErrorStateEnum::kCommandInvalidInState ));
87
- return ;
88
- }
89
-
90
72
// placeholder implementation
91
73
auto error = GetInstance ()->SetOperationalState (to_underlying (OperationalStateEnum::kRunning ));
92
74
if (error == CHIP_NO_ERROR)
You can’t perform that action at this time.
0 commit comments