Skip to content

Commit

Permalink
Rename SetDurations to SetModeDurations
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Jan 30, 2024
1 parent da9b0ff commit 493218f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/icd/ICDConfigurationData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ System::Clock::Milliseconds32 ICDConfigurationData::GetSlowPollingInterval()
return mSlowPollingInterval;
}

CHIP_ERROR ICDConfigurationData::SetDurations(uint32_t activeModeDuration_ms, uint32_t idleModeInterval_s)
CHIP_ERROR ICDConfigurationData::SetModeDurations(uint32_t activeModeDuration_ms, uint32_t idleModeInterval_s)
{
VerifyOrReturnError(activeModeDuration_ms <= (idleModeInterval_s * 1000), CHIP_ERROR_INVALID_ARGUMENT);
VerifyOrReturnError(idleModeInterval_s <= kMaxIdleModeDuration_s, CHIP_ERROR_INVALID_ARGUMENT);
Expand Down
2 changes: 1 addition & 1 deletion src/app/icd/ICDConfigurationData.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ICDConfigurationData
* is returned if idleModeDuration_s is smaller than 1 seconds
* CHIP_NO_ERROR is returned if the new intervals were set
*/
CHIP_ERROR SetDurations(uint32_t activeModeDuration_ms, uint32_t idleModeDuration_s);
CHIP_ERROR SetModeDurations(uint32_t activeModeDuration_ms, uint32_t idleModeDuration_s);

static constexpr uint32_t kMaxIdleModeDuration_s = 64800;
static constexpr uint32_t kMinIdleModeDuration_s = 1;
Expand Down

0 comments on commit 493218f

Please sign in to comment.