-
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
Added Feature Map to AirQuality
Read Handler
#29105
Added Feature Map to AirQuality
Read Handler
#29105
Conversation
…e the value is being encoded by the read handler
AirQuality
Read Handler
PR #29105: Size comparison from 0e7d3b7 to bada9a9 Increases (5 builds for linux, nrfconnect, psoc6, telink)
Decreases (1 build for efr32)
Full report (67 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
@@ -115,6 +115,9 @@ CHIP_ERROR Instance::Read(const ConcreteReadAttributePath & aPath, AttributeValu | |||
case Attributes::AirQuality::Id: | |||
ReturnErrorOnFailure(aEncoder.Encode(mAirQuality)); | |||
break; | |||
case Attributes::FeatureMap::Id: |
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.
This should have gotten added to the list of "attribute access interface only" attributes....
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.
Looks like it is there, but because of project-chip/zap#543 that annotation is not working right now for global attributes.
* Added Feature Map to read handler * Set the air quality feature map to zero in zapfile so that we are sure the value is being encoded by the read handler
* Added Feature Map to read handler * Set the air quality feature map to zero in zapfile so that we are sure the value is being encoded by the read handler
The
mFeature
value that is passed to the class as an arg was not included in the Read Handler for this class.This was not picked up in CI as the all-clusters-app zapfile was set to the correct value and as such, this was getting returned when the Read Handler failed to encode anything.
So I have fixed it and zero'ed out the zapfile so as to catch this error in future.