Skip to content

Commit

Permalink
remove workarounds for project-chip#13327, fixed by project-chip#13321
Browse files Browse the repository at this point in the history
  • Loading branch information
msandstedt committed Jan 27, 2022
1 parent a73b973 commit 0ce5674
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/commissioner/ExampleCommissioningStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ chip::StateMachine::Optional<State> Transitions::operator()(const State & state,
{
return mFactory.CreateInvokingArmFailSafe(event.Get<ArmFailSafe>());
}
else if (state.Is<InvokingArmFailSafe>() &&
(event.Is<Success>() || event.Is<Failure>())) // TODO(#13327): accept failure; until #13327 is resolved, commissionees
// will return ArmFailSafe instead of ArmFailSafeResponse
else if (state.Is<InvokingArmFailSafe>() && event.Is<Success>())
{
return mFactory.CreateFailSafeArmed();
}
Expand Down Expand Up @@ -197,10 +195,7 @@ chip::StateMachine::Optional<State> Transitions::operator()(const State & state,
{
return mFactory.CreateInvokingCommissioningComplete();
}
else if (state.Is<InvokingCommissioningComplete>() &&
(event.Is<Success>() ||
event.Is<Failure>())) // TODO(#13327): accept failure; until #13327 is resolved, commissionees will return
// CommissioningComplete instead of CommissioningCompleteResponse
else if (state.Is<InvokingCommissioningComplete>() && event.Is<Success>())
{
return mFactory.CreateCommissioningComplete();
}
Expand Down

0 comments on commit 0ce5674

Please sign in to comment.