-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ICD] Expose SetModeDurations via ICDManager #37887
[ICD] Expose SetModeDurations via ICDManager #37887
Conversation
654247b
to
5e653df
Compare
PR #37887: Size comparison from 2aaf2f8 to 5e653df Full report (26 builds for cc13x4_26x4, cc32xx, linux, stm32, tizen)
|
5e653df
to
9cffc81
Compare
PR #37887: Size comparison from cf45d5d to 9cffc81 Full report (9 builds for cc13x4_26x4, cc32xx, stm32, tizen)
|
9cffc81
to
64f23b2
Compare
PR #37887: Size comparison from cf45d5d to 64f23b2 Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nxp, psoc6, qpg, stm32, telink, tizen)
|
64f23b2
to
09d2bbc
Compare
PR #37887: Size comparison from cf45d5d to 09d2bbc Full report (14 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, tizen)
|
PR #37887: Size comparison from cf45d5d to 1682b12 Full report (46 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, nrfconnect, psoc6, qpg, stm32, telink, tizen)
|
1682b12
to
9dab068
Compare
PR #37887: Size comparison from 1eb2421 to 9dab068 Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@@ -174,6 +174,13 @@ class ICDManager : public ICDListener, public TestEventTriggerHandler | |||
*/ | |||
bool SupportsFeature(Clusters::IcdManagement::Feature feature); | |||
|
|||
// See ICDConfigurationData::SetModeDurations | |||
CHIP_ERROR SetModeDurations(Optional<System::Clock::Milliseconds32> activeModeDuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be const &
instead of passed by value?
@@ -174,6 +174,13 @@ class ICDManager : public ICDListener, public TestEventTriggerHandler | |||
*/ | |||
bool SupportsFeature(Clusters::IcdManagement::Feature feature); | |||
|
|||
// See ICDConfigurationData::SetModeDurations | |||
CHIP_ERROR SetModeDurations(Optional<System::Clock::Milliseconds32> activeModeDuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a comment that this API doesn't currently garantee that spec compliance is respected if called at run time.
We need expose SetModeDurations via ICDManager because
-- Chef icd example app need to update ModeDuration via parameter without rebuilding the example app binary.(see #37123 (comment))
-- the new ICD "finished" feature would use this code path
Testing
Update the existing unit test.