-
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
Bugfix: Dont read non-existing attributes for lock/unlock commands #19373
Bugfix: Dont read non-existing attributes for lock/unlock commands #19373
Conversation
PR #19373: Size comparison from 47a51ce to 668c9c8 Increases (21 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Decreases (5 builds for cc13x2_26x2)
Full report (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
…roject-chip#19373) * [project-chip#19316] Don't require PIN for locking/unlocking the door when not required * Update auto-generated files
{ | ||
auto status = Attributes::RequirePINforRemoteOperation::Get(endpoint, &requirePin); | ||
VerifyOrExit( | ||
EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE == status || EMBER_ZCL_STATUS_SUCCESS == status, |
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.
But if COTA and PIN are both enabled, shouldn't we fail out if the then-required attribute does not exist?
Also, the attribute is allowed to be present even if those features are disabled, I believe. @CamWms can you confirm?
response: | ||
value: 2 | ||
|
||
- label: "Try to unlock the door without a PIN" |
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 label is wrong...
…roject-chip#19373) * [project-chip#19316] Don't require PIN for locking/unlocking the door when not required * Update auto-generated files
Problem
Change overview
RequirePINforRemoteOperation
attribute when it's not present.Testing
DL_LockUnlock
,DL_Schedules
,DL_UsersAndCredentials
.