Skip to content

Commit

Permalink
Add Face to LockDataTypeEnum. (#25144)
Browse files Browse the repository at this point in the history
Now that https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/6274
is fixed and we have a value defined for it.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 26, 2024
1 parent a774bae commit cce14aa
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2135,6 +2135,7 @@ server cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1927,6 +1927,7 @@ server cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
1 change: 1 addition & 0 deletions examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ server cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
1 change: 1 addition & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,7 @@ server cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
1 change: 1 addition & 0 deletions examples/lock-app/nxp/zap/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@ server cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
4 changes: 1 addition & 3 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3046,9 +3046,7 @@ LockDataTypeEnum DoorLockServer::credentialTypeToLockDataType(CredentialTypeEnum
case CredentialTypeEnum::kFingerVein:
return LockDataTypeEnum::kFingerVein;
case CredentialTypeEnum::kFace:
// So far there's no distinct data type for face credentials.
// See https://github.com/CHIP-Specifications/connectedhomeip-spec/issues/6272
return LockDataTypeEnum::kUnspecified;
return LockDataTypeEnum::kFace;
case CredentialTypeEnum::kUnknownEnumValue:
return LockDataTypeEnum::kUnspecified;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ limitations under the License.
<item value="7" name="RFID" />
<item value="8" name="Fingerprint" />
<item value="9" name="FingerVein" />
<item value="10" name="Face" />
</enum>

<enum name="LockOperationTypeEnum" type="ENUM8">
Expand Down
1 change: 1 addition & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@ client cluster DoorLock = 257 {
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
kFace = 10;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
3 changes: 2 additions & 1 deletion src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6696,6 +6696,7 @@
DoorLock:
LockDataTypeEnum:
- FingerVein
- Face
DiagnosticLogs:
IntentEnum:
- EndUserSupport
Expand Down Expand Up @@ -6759,9 +6760,10 @@
enum values:
DoorLock:
DlLockDataType:
# This value never existed for this enum name so, don't start
# exposing it. It's exposed for LockDataTypeEnum
# These values never existed for this enum name so, don't
# start exposing them. They're exposed for LockDataTypeEnum
- FingerVein
- Face
renames:
attributes:
TimeSynchronization:
Expand Down
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cce14aa

Please sign in to comment.