Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jrhees-cae committed Jun 28, 2024
1 parent a28e622 commit 6b0d364
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,8 @@ void DoorLockServer::setWeekDayScheduleCommandHandler(chip::app::CommandHandler
EmberAfPluginDoorLockUserInfo user;
if (!emberAfPluginDoorLockGetUser(endpointId, userIndex, user))
{
ChipLogError(Zcl,
"[SetWeekDaySchedule] Unable to get the user - internal error [endpointId=%d,userIndex=%d]",
endpointId, userIndex);
ChipLogError(Zcl, "[SetWeekDaySchedule] Unable to get the user - internal error [endpointId=%d,userIndex=%d]", endpointId,
userIndex);
commandObj->AddStatus(commandPath, Status::Failure);
return;
}
Expand Down Expand Up @@ -1078,13 +1077,11 @@ void DoorLockServer::setWeekDayScheduleCommandHandler(chip::app::CommandHandler
endpointId, weekDayIndex, userIndex, daysMask.Raw(), startHour, startMinute, endHour, endMinute);

// Update LastModifiedFabricIndex of user
if (!emberAfPluginDoorLockSetUser(endpointId, userIndex, user.createdBy, fabricIdx, user.userName,
user.userUniqueId, user.userStatus, user.userType, user.credentialRule,
user.credentials.data(), user.credentials.size()))
if (!emberAfPluginDoorLockSetUser(endpointId, userIndex, user.createdBy, fabricIdx, user.userName, user.userUniqueId,
user.userStatus, user.userType, user.credentialRule, user.credentials.data(),
user.credentials.size()))
{
ChipLogError(
Zcl,
"[SetWeekDaySchedule] Unable to update user - internal error [endpointId=%d,fabricIndex=%d,userIndex=%d]",
ChipLogError(Zcl, "[SetWeekDaySchedule] Unable to update user - internal error [endpointId=%d,fabricIndex=%d,userIndex=%d]",
endpointId, fabricIdx, userIndex);
}

Expand Down Expand Up @@ -1255,9 +1252,8 @@ void DoorLockServer::setYearDayScheduleCommandHandler(chip::app::CommandHandler
EmberAfPluginDoorLockUserInfo user;
if (!emberAfPluginDoorLockGetUser(endpointId, userIndex, user))
{
ChipLogError(Zcl,
"[SetYearDaySchedule] Unable to get the user - internal error [endpointId=%d,userIndex=%d]",
endpointId, userIndex);
ChipLogError(Zcl, "[SetYearDaySchedule] Unable to get the user - internal error [endpointId=%d,userIndex=%d]", endpointId,
userIndex);
commandObj->AddStatus(commandPath, Status::Failure);
return;
}
Expand Down Expand Up @@ -1311,13 +1307,11 @@ void DoorLockServer::setYearDayScheduleCommandHandler(chip::app::CommandHandler
endpointId, yearDayIndex, userIndex, localStartTime, localEndTime);

// Update LastModifiedFabricIndex of user
if (!emberAfPluginDoorLockSetUser(endpointId, userIndex, user.createdBy, fabricIdx, user.userName,
user.userUniqueId, user.userStatus, user.userType, user.credentialRule,
user.credentials.data(), user.credentials.size()))
if (!emberAfPluginDoorLockSetUser(endpointId, userIndex, user.createdBy, fabricIdx, user.userName, user.userUniqueId,
user.userStatus, user.userType, user.credentialRule, user.credentials.data(),
user.credentials.size()))
{
ChipLogError(
Zcl,
"[SetYearDaySchedule] Unable to update user - internal error [endpointId=%d,fabricIndex=%d,userIndex=%d]",
ChipLogError(Zcl, "[SetYearDaySchedule] Unable to update user - internal error [endpointId=%d,fabricIndex=%d,userIndex=%d]",
endpointId, fabricIdx, userIndex);
}

Expand Down

0 comments on commit 6b0d364

Please sign in to comment.