-
Notifications
You must be signed in to change notification settings - Fork 2k
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
FanControl: modify percentSetting/percentSpeedSetting return value in case NULL is written (match spec) #36242
base: master
Are you sure you want to change the base?
FanControl: modify percentSetting/percentSpeedSetting return value in case NULL is written (match spec) #36242
Conversation
PR #36242: Size comparison from f1457a2 to feb6883 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36242: Size comparison from f1457a2 to d2220b3 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@@ -198,7 +198,7 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute | |||
} | |||
else | |||
{ | |||
res = Status::WriteIgnored; | |||
res = Status::InvalidInState; |
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.
We apparently have no test coverage, since nothing started failing.
Please add a basic YAML test that exercises this.
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.
I've modified the "TestFanControl.yaml" file to include coverage for this particular case.
PR #36242: Size comparison from f1457a2 to 7ff9f2e Increases above 0.2%:
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36242: Size comparison from ebfd212 to 5444b69 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
As per the spec, in fan-control cluster, when
NULL
is written topercentSetting
attribute orspeedSetting
attribute by client, it should return INVALID_IN_STATE. But currently WRITE_IGNORED is being returned.The return value in these 2 cases is corrected in this PR.