Skip to content

Commit

Permalink
[ota-requestor] Reset to Idle on failed NotifyUpdateApplied (project-…
Browse files Browse the repository at this point in the history
…chip#22131)

Reset to Idle state on connection failure when trying to
send NotifyUpdateApplied command.

Signed-off-by: Damian Krolik <[email protected]>

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic authored and isiu-apple committed Sep 16, 2022
1 parent bac9bd2 commit 257445c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,9 @@ void DefaultOTARequestor::OnConnectionFailure(void * context, const ScopedNodeId
switch (requestorCore->mOnConnectedAction)
{
case kQueryImage:
requestorCore->RecordErrorUpdateState(error);
break;
case kDownload:
requestorCore->RecordErrorUpdateState(error);
break;
case kApplyUpdate:
case kNotifyUpdateApplied:
requestorCore->RecordErrorUpdateState(error);
break;
default:
Expand Down

0 comments on commit 257445c

Please sign in to comment.