Skip to content

Commit

Permalink
Code review changes.
Browse files Browse the repository at this point in the history
- Changed StartPeriodicQueryTimer() call to StartSelectedTimer(SelectedTimer::kPeriodicQueryTimer).
  • Loading branch information
isiu-apple committed Mar 24, 2022
1 parent b55d512 commit 03ae043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/clusters/ota-requestor/GenericOTARequestorDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void GenericOTARequestorDriver::UpdateNotFound(UpdateNotFoundReason reason, Syst
else
{
ChipLogProgress(SoftwareUpdate, "UpdateNotFound, not scheduling further retries");
StartPeriodicQueryTimer();
StartSelectedTimer(SelectedTimer::kPeriodicQueryTimer);
}
}

Expand Down Expand Up @@ -404,15 +404,15 @@ void GenericOTARequestorDriver::WatchdogTimerHandler(System::Layer * systemLayer
// Scheduling periodic timer here just in case.
StartPeriodicQueryTimer();
break;
case OTAUpdateStateEnum::kQuerying:
case OTAUpdateStateEnum::kDelayedOnQuery:
case OTAUpdateStateEnum::kDownloading:
case OTAUpdateStateEnum::kApplying:
case OTAUpdateStateEnum::kDelayedOnApply:
UpdateDiscontinued();
mRequestor->CancelImageUpdate();
StartPeriodicQueryTimer();
break;
case OTAUpdateStateEnum::kQuerying:
case OTAUpdateStateEnum::kDelayedOnQuery:
case OTAUpdateStateEnum::kRollingBack:
case OTAUpdateStateEnum::kDelayedOnUserConsent:
mRequestor->Reset();
Expand Down

0 comments on commit 03ae043

Please sign in to comment.