Skip to content

Commit

Permalink
Add FingerVein to LockDataTypeEnum. (#24988)
Browse files Browse the repository at this point in the history
Now that https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/6240
is fixed and we have a value defined for it.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 27, 2023
1 parent d7e923c commit 2365769
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,7 @@ server cluster DoorLock = 257 {
kPin = 6;
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
}

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

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 @@ -1229,6 +1229,7 @@ server cluster DoorLock = 257 {
kPin = 6;
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
}

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 @@ -1547,6 +1547,7 @@ server cluster DoorLock = 257 {
kPin = 6;
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
}

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 @@ -1006,6 +1006,7 @@ server cluster DoorLock = 257 {
kPin = 6;
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
}

enum LockOperationTypeEnum : ENUM8 {
Expand Down
5 changes: 3 additions & 2 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3060,9 +3060,10 @@ LockDataTypeEnum DoorLockServer::credentialTypeToLockDataType(CredentialTypeEnum
case CredentialTypeEnum::kFingerprint:
return LockDataTypeEnum::kFingerprint;
case CredentialTypeEnum::kFingerVein:
return LockDataTypeEnum::kFingerprint;
return LockDataTypeEnum::kFingerVein;
case CredentialTypeEnum::kFace:
// So far there's no distinct data type for face credentials
// So far there's no distinct data type for face credentials.
// See https://github.com/CHIP-Specifications/connectedhomeip-spec/issues/6272
return LockDataTypeEnum::kUnspecified;
case CredentialTypeEnum::kUnknownEnumValue:
return LockDataTypeEnum::kUnspecified;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ limitations under the License.
<item value="6" name="PIN" />
<item value="7" name="RFID" />
<item value="8" name="Fingerprint" />
<item value="9" name="FingerVein" />
</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 @@ -2250,6 +2250,7 @@ client cluster DoorLock = 257 {
kPin = 6;
kRfid = 7;
kFingerprint = 8;
kFingerVein = 9;
}

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.

11 changes: 11 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6651,3 +6651,14 @@
- EventList
FaultInjection:
- EventList
enum values:
DoorLock:
LockDataTypeEnum:
- FingerVein
removed:
enum values:
DoorLock:
DlLockDataType:
# This value never existed for this enum name so, don't start
# exposing it. It's exposed for LockDataTypeEnum
- FingerVein
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 2365769

Please sign in to comment.