diff --git a/src/app/icd/ICDConfigurationData.cpp b/src/app/icd/ICDConfigurationData.cpp index 458786541548b8..9c2079a4386742 100644 --- a/src/app/icd/ICDConfigurationData.cpp +++ b/src/app/icd/ICDConfigurationData.cpp @@ -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); diff --git a/src/app/icd/ICDConfigurationData.h b/src/app/icd/ICDConfigurationData.h index 7a64e60cc652ed..2762077429b006 100644 --- a/src/app/icd/ICDConfigurationData.h +++ b/src/app/icd/ICDConfigurationData.h @@ -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;