-
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
Dont store transition val #26867
Dont store transition val #26867
Conversation
PR #26867: Size comparison from ad5253a to 5e3e2a9 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
PR #26867: Size comparison from ad5253a to bdfa143 Increases (16 builds for cc13x2_26x2, cc13x4_26x4, cc32xx, k32w, mbed, nrfconnect)
Full report (16 builds for cc13x2_26x2, cc13x4_26x4, cc32xx, k32w, mbed, nrfconnect)
|
will it be better if i create a separate |
Note that we solved this issue using |
@@ -54,18 +54,19 @@ EmberAfStatus emberAfWriteAttributeExternal(EndpointId endpoint, ClusterId clust | |||
case EmberAfAttributeWritePermission::AllowWriteNormal: | |||
case EmberAfAttributeWritePermission::AllowWriteOfReadOnly: | |||
return emAfWriteAttribute(endpoint, cluster, attributeID, dataPtr, dataType, | |||
(extWritePermission == EmberAfAttributeWritePermission::AllowWriteOfReadOnly), false); | |||
(extWritePermission == EmberAfAttributeWritePermission::AllowWriteOfReadOnly), false, false); | |||
default: | |||
return (EmberAfStatus) extWritePermission; | |||
} | |||
} | |||
|
|||
EmberAfStatus emberAfWriteAttribute(EndpointId endpoint, ClusterId cluster, AttributeId attributeID, uint8_t * dataPtr, |
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.
Suggest using a new method emberAfWriteAttributeSkipNonVolatile
to be much more explicit, which calls the version with isTemp.
This way, almost none of the accessors below need to be changed.
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.
The template for codegen has to be changed. You cannot manually change files in zzz_generated. See comment higher up (// THIS FILE IS GENERATED BY ZAP
)
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 is a spec violation if done in this blanket way. See https://github.com/project-chip/connectedhomeip/blob/master/src/app/DeferredAttributePersistenceProvider.h for how this should be handled.
Thanks for the reviews, i will close this PR and look into |
isTemp
argument in theirSet
functionisTemp
to falseNote