Skip to content

Commit

Permalink
Restyled by whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jun 28, 2022
1 parent 45c3fb2 commit 17df21b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/lock-app/efr32/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ CHIP_ERROR AppTask::Init()

chip::DeviceLayer::PlatformMgr().UnlockChipStack();

err = LockMgr().Init(state, maxCredentialsPerUser, numberOfSupportedUsers, numberOfWeekdaySchedulesPerUserSupported,
err = LockMgr().Init(state, maxCredentialsPerUser, numberOfSupportedUsers, numberOfWeekdaySchedulesPerUserSupported,
numberOfYeardaySchedulesPerUserSupported, numberOfHolidaySchedulesSupported);
if (err != CHIP_NO_ERROR)
{
Expand Down
16 changes: 8 additions & 8 deletions examples/lock-app/efr32/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ bool LockManager::ReadConfigValues()
EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_UserCredentials, reinterpret_cast<uint8_t *>(mCredentials),
sizeof(DlCredential) * mMaxUsers * mMaxCredentialsPerUser, outLen);

EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_WeekDaySchedules, reinterpret_cast<uint8_t *> (mWeekdaySchedule),
EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_WeekDaySchedules, reinterpret_cast<uint8_t *> (mWeekdaySchedule),
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * mNumberOfWeekdaySchedulesPerUserSupported * mMaxUsers, outLen);

EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_YearDaySchedules, reinterpret_cast<uint8_t *> (mYeardaySchedule),
EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_YearDaySchedules, reinterpret_cast<uint8_t *> (mYeardaySchedule),
sizeof(EmberAfPluginDoorLockYearDaySchedule) * mNumberOfYeardaySchedulesPerUserSupported * mMaxUsers, outLen);

EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_HolidaySchedules, reinterpret_cast<uint8_t *> (&(mHolidaySchedule)),
EFR32Config::ReadConfigValueBin(EFR32Config::kConfigKey_HolidaySchedules, reinterpret_cast<uint8_t *> (&(mHolidaySchedule)),
sizeof(EmberAfPluginDoorLockHolidaySchedule) * mNumberOfHolidaySchedulesSupported, outLen);

return true;
Expand Down Expand Up @@ -455,7 +455,7 @@ DlStatus LockManager::GetWeekdaySchedule(chip::EndpointId endpointId, uint8_t we
endpointId, userIndex);
return DlStatus::kFailure;
}

// doorlock server checks for valid indices
uint8_t adjustedWeekDayIndex = weekdayIndex - 1;
uint16_t adjustedUserIndex = userIndex - 1;
Expand Down Expand Up @@ -497,7 +497,7 @@ DlStatus LockManager::SetWeekdaySchedule(chip::EndpointId endpointId, uint8_t we
scheduleInStorage.endHour = endHour;
scheduleInStorage.endMinute = endMinute;

EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_WeekDaySchedules, reinterpret_cast<const uint8_t *> (mWeekdaySchedule),
EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_WeekDaySchedules, reinterpret_cast<const uint8_t *> (mWeekdaySchedule),
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * mNumberOfWeekdaySchedulesPerUserSupported * mMaxUsers);

return DlStatus::kSuccess;
Expand Down Expand Up @@ -528,7 +528,7 @@ DlStatus LockManager::GetYeardaySchedule(chip::EndpointId endpointId, uint8_t ye

schedule = scheduleInStorage;

return DlStatus::kSuccess;
return DlStatus::kSuccess;
}

DlStatus LockManager::SetYeardaySchedule(chip::EndpointId endpointId, uint8_t yearDayIndex, uint16_t userIndex,
Expand Down Expand Up @@ -557,7 +557,7 @@ DlStatus LockManager::SetYeardaySchedule(chip::EndpointId endpointId, uint8_t ye
scheduleInStorage.localStartTime = localStartTime;
scheduleInStorage.localEndTime = localEndTime;

EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_YearDaySchedules, reinterpret_cast<const uint8_t *> (mYeardaySchedule),
EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_YearDaySchedules, reinterpret_cast<const uint8_t *> (mYeardaySchedule),
sizeof(EmberAfPluginDoorLockYearDaySchedule) * mNumberOfYeardaySchedulesPerUserSupported * mMaxUsers);

return DlStatus::kSuccess;
Expand Down Expand Up @@ -601,7 +601,7 @@ DlStatus LockManager::SetHolidaySchedule(chip::EndpointId endpointId, uint8_t ho
scheduleInStorage.localEndTime = localEndTime;
scheduleInStorage.operatingMode = operatingMode;

EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_HolidaySchedules, reinterpret_cast<const uint8_t *> (&(mHolidaySchedule)),
EFR32Config::WriteConfigValueBin(EFR32Config::kConfigKey_HolidaySchedules, reinterpret_cast<const uint8_t *> (&(mHolidaySchedule)),
sizeof(EmberAfPluginDoorLockHolidaySchedule) * mNumberOfHolidaySchedulesSupported);

return DlStatus::kSuccess;
Expand Down

0 comments on commit 17df21b

Please sign in to comment.