-
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
Refactor read/write ember compatibility functions #12109
Refactor read/write ember compatibility functions #12109
Conversation
We should probably clone the writer and convert failures hereconnectedhomeip/src/app/util/ember-compatibility-functions.cpp Lines 243 to 253 in 51f9135
This comment was generated by todo based on a
|
PR #12109: Size comparison from 63ea01b to 51f9135 Decreases (15 builds for k32w, linux, p6, qpg, telink)
Full report (17 builds for k32w, linux, p6, qpg, telink)
|
PR #12109: Size comparison from 3f2ab62 to f0c0836 Decreases (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
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.
LGTM, thanks
Fast tracking given this has been in review for a while. |
I'm fixing this PR now so it can be merged. |
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.
Need to merge to tip and fix the existing merge issues...
Also improved the refactoring, it should be clearer.
f0c0836
to
ae5c82f
Compare
Refactor WriteSingleClusterData and all dependent functions to take ConcreteAttributePath instead of ClusterInfoconnectedhomeip/src/app/util/ember-compatibility-functions.cpp Lines 663 to 673 in ae5c82f
This comment was generated by todo based on a
|
I redid the changes on latest master branch. Also, I simplified how the refactoring was done, so it should be clearer now. |
Apparently it doesn't like that syntax.
Co-authored-by: Boris Zbarsky <[email protected]>
PR #12109: Size comparison from 1ad526b to 76f71eb Decreases (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (39 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Refactor the ember read/write functions so they better return a status message Co-authored-by: Boris Zbarsky <[email protected]>
Refactor the code within ReadSingleClusterData and
WriteSingleClusterData so it has better support for early exit while
returning status in the message response.
This will be needed soon when Access Control starts denying access.
Tested by running unit tests, and running chip-tool against all-clusters-app
for some reads and writes.