Skip to content

Commit

Permalink
[SL-UP] Doorlock featuremap Aliro Removal (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Oct 30, 2024
1 parent 61d6b94 commit 115cfdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/lock-app/silabs/data_model/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3261,7 +3261,7 @@ endpoint 1 {
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0x7DB3;
ram attribute featureMap default = 0x1DB3;
ram attribute clusterRevision default = 7;

handle command LockDoor;
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/silabs/data_model/lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -6188,7 +6188,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x7DB3",
"defaultValue": "0x1DB3",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
7 changes: 4 additions & 3 deletions examples/lock-app/silabs/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using namespace ::chip::DeviceLayer::Internal;
using namespace EFR32DoorLock::LockInitParams;

namespace {
LockManager sLock;
LockManager sLock;
} // namespace

LockManager & LockMgr()
Expand Down Expand Up @@ -264,8 +264,9 @@ void LockManager::UnlockAfterUnlatch()
bool succes = false;
if (mUnlatchContext.mEndpointId != kInvalidEndpointId)
{
succes = setLockState(mUnlatchContext.mEndpointId, mUnlatchContext.mFabricIdx, mUnlatchContext.mNodeId,
DlLockState::kUnlocked, MakeOptional(chip::ByteSpan(mUnlatchContext.mPinBuffer, mUnlatchContext.mPinLength)), mUnlatchContext.mErr);
succes = setLockState(
mUnlatchContext.mEndpointId, mUnlatchContext.mFabricIdx, mUnlatchContext.mNodeId, DlLockState::kUnlocked,
MakeOptional(chip::ByteSpan(mUnlatchContext.mPinBuffer, mUnlatchContext.mPinLength)), mUnlatchContext.mErr);
}

if (!succes)
Expand Down

0 comments on commit 115cfdd

Please sign in to comment.