Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle [OTA Requestor] Implement the CancelImageUpdate() OTARequestor API #13884

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Restyled by clang-format
  • Loading branch information
restyled-commits committed Jan 20, 2022
commit 06a0c91ca66d01bddf956cfc5e60479e402a1d17
4 changes: 2 additions & 2 deletions src/app/clusters/ota-requestor/OTARequestor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ void OTARequestor::CancelImageUpdate()
mBdxDownloader->EndDownload(CHIP_ERROR_CONNECTION_ABORTED);

// All Provider info should be invalidated
mProviderNodeId = kUndefinedNodeId;
mProviderNodeId = kUndefinedNodeId;
mProviderFabricIndex = kUndefinedFabricIndex;
mProviderEndpointId = kRootEndpointId;
mProviderEndpointId = kRootEndpointId;

RecordNewUpdateState(OTAUpdateStateEnum::kIdle, OTAChangeReasonEnum::kUnknown);
}
Expand Down