Skip to content

Commit

Permalink
Code review changes.
Browse files Browse the repository at this point in the history
- Renamed kTimeoutSec to kDownloadTimeoutSec.
  • Loading branch information
isiu-apple committed Mar 3, 2022
1 parent cc41e7a commit 9b21b94
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -48,7 +48,7 @@ OTARequestorInterface * globalOTARequestorInstance = nullptr;
constexpr uint32_t kImmediateStartDelayMs = 1;

// Abort the QueryImage download request if there's been no progress for 5 minutes
static constexpr System::Clock::Timeout kTimeoutSec = chip::System::Clock::Seconds32(300);
static constexpr System::Clock::Timeout kDownloadTimeoutSec = chip::System::Clock::Seconds32(300);

static void LogQueryImageResponse(const QueryImageResponse::DecodableType & response)
{
Expand Down Expand Up @@ -715,7 +715,7 @@ CHIP_ERROR OTARequestor::StartDownload(OperationalDeviceProxy & deviceProxy)
mBdxDownloader->SetMessageDelegate(&mBdxMessenger);
mBdxDownloader->SetStateDelegate(this);

ReturnErrorOnFailure(mBdxDownloader->SetBDXParams(initOptions, kTimeoutSec));
ReturnErrorOnFailure(mBdxDownloader->SetBDXParams(initOptions, kDownloadTimeoutSec));
return mBdxDownloader->BeginPrepareDownload();
}

Expand Down

0 comments on commit 9b21b94

Please sign in to comment.