Skip to content

Commit

Permalink
[ota-requestor] Reset to Idle on failed NotifyUpdateApplied
Browse files Browse the repository at this point in the history
Reset to Idle state on connection failure when trying to
send NotifyUpdateApplied command.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic committed Aug 24, 2022
1 parent 9a13892 commit cf99a18
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 cf99a18

Please sign in to comment.