Skip to content

Commit 4782d4a

Browse files
committed
samples: matter: lock: Format sources
Format sources before changes. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 55d0fe2 commit 4782d4a

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

samples/matter/lock/src/access/access_manager.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ using namespace DoorLockData;
1818

1919
template <CredentialsBits CRED_BIT_MASK>
2020
void AccessManager<CRED_BIT_MASK>::Init(SetCredentialCallback setCredentialClbk,
21-
ClearCredentialCallback clearCredentialClbk,
22-
ValidateCredentialCallback validateCredentialClbk)
21+
ClearCredentialCallback clearCredentialClbk,
22+
ValidateCredentialCallback validateCredentialClbk)
2323
{
2424
InitializeAllCredentials();
2525
mSetCredentialCallback = setCredentialClbk;
@@ -134,9 +134,8 @@ template <CredentialsBits CRED_BIT_MASK> void AccessManager<CRED_BIT_MASK>::SetR
134134
{
135135
if (mRequirePINForRemoteOperation != require) {
136136
mRequirePINForRemoteOperation = require;
137-
if (!AccessStorage::Instance().Store(AccessStorage::Type::RequirePIN,
138-
&mRequirePINForRemoteOperation,
139-
sizeof(mRequirePINForRemoteOperation))) {
137+
if (!AccessStorage::Instance().Store(AccessStorage::Type::RequirePIN, &mRequirePINForRemoteOperation,
138+
sizeof(mRequirePINForRemoteOperation))) {
140139
LOG_ERR("Cannot store RequirePINforRemoteOperation.");
141140
}
142141
}
@@ -148,4 +147,4 @@ template class AccessManager<DoorLockData::PIN | DoorLockData::RFID>;
148147
template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER>;
149148
template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER | DoorLockData::VEIN>;
150149
template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER | DoorLockData::VEIN |
151-
DoorLockData::FACE>;
150+
DoorLockData::FACE>;

samples/matter/lock/src/app_task.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class AppTask {
5454
#endif
5555

5656
#ifdef CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS
57-
constexpr static Nrf::Matter::TestEventTrigger::EventTriggerId kDoorLockJammedEventTriggerId = 0xFFFF'FFFF'3277'4000;
57+
constexpr static Nrf::Matter::TestEventTrigger::EventTriggerId kDoorLockJammedEventTriggerId =
58+
0xFFFF'FFFF'3277'4000;
5859
static CHIP_ERROR DoorLockJammedEventCallback(Nrf::Matter::TestEventTrigger::TriggerValue);
5960
#endif
6061
};

samples/matter/lock/src/bolt_lock_manager.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool BoltLockManager::SetUser(uint16_t userIndex, FabricIndex creator, FabricInd
3737
size_t totalCredentials)
3838
{
3939
return AccessMgr::Instance().SetUser(userIndex, creator, modifier, userName, uniqueId, userStatus, userType,
40-
credentialRule, credentials, totalCredentials);
40+
credentialRule, credentials, totalCredentials);
4141
}
4242

4343
bool BoltLockManager::GetCredential(uint16_t credentialIndex, CredentialTypeEnum credentialType,
@@ -50,8 +50,8 @@ bool BoltLockManager::SetCredential(uint16_t credentialIndex, FabricIndex creato
5050
DlCredentialStatus credentialStatus, CredentialTypeEnum credentialType,
5151
const ByteSpan &secret)
5252
{
53-
return AccessMgr::Instance().SetCredential(credentialIndex, creator, modifier, credentialStatus,
54-
credentialType, secret);
53+
return AccessMgr::Instance().SetCredential(credentialIndex, creator, modifier, credentialStatus, credentialType,
54+
secret);
5555
}
5656

5757
#ifdef CONFIG_LOCK_SCHEDULES
@@ -67,7 +67,7 @@ DlStatus BoltLockManager::SetWeekDaySchedule(uint8_t weekdayIndex, uint16_t user
6767
uint8_t endHour, uint8_t endMinute)
6868
{
6969
return AccessMgr::Instance().SetWeekDaySchedule(weekdayIndex, userIndex, status, daysMask, startHour,
70-
startMinute, endHour, endMinute);
70+
startMinute, endHour, endMinute);
7171
}
7272

7373
DlStatus BoltLockManager::GetYearDaySchedule(uint8_t yearDayIndex, uint16_t userIndex,
@@ -91,12 +91,11 @@ DlStatus BoltLockManager::SetHolidaySchedule(uint8_t holidayIndex, DlScheduleSta
9191
uint32_t localEndTime, OperatingModeEnum operatingMode)
9292
{
9393
return AccessMgr::Instance().SetHolidaySchedule(holidayIndex, status, localStartTime, localEndTime,
94-
operatingMode);
94+
operatingMode);
9595
}
9696

9797
#endif /* CONFIG_LOCK_SCHEDULES */
9898

99-
10099
bool BoltLockManager::ValidatePIN(const Optional<ByteSpan> &pinCode, OperationErrorEnum &err)
101100
{
102101
return AccessMgr::Instance().ValidatePIN(pinCode, err);

0 commit comments

Comments
 (0)