From 90470c3ef225715fb2a9c6c28384470f852dad81 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 30 Mar 2023 18:45:06 +0000 Subject: [PATCH] Restyled by clang-format --- examples/chef/common/stubs.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/chef/common/stubs.cpp b/examples/chef/common/stubs.cpp index 8004979cd670e4..75b45cbb1b38bb 100644 --- a/examples/chef/common/stubs.cpp +++ b/examples/chef/common/stubs.cpp @@ -37,7 +37,8 @@ class LockManager struct User { - void set(chip::CharSpan newName, uint32_t userId, UserStatusEnum userStatus, UserTypeEnum type, CredentialRuleEnum credentialRule) + void set(chip::CharSpan newName, uint32_t userId, UserStatusEnum userStatus, UserTypeEnum type, + CredentialRuleEnum credentialRule) { size_t sz = std::min(sizeof(name), newName.size()); memcpy(name, newName.data(), sz); @@ -121,7 +122,8 @@ class LockManager } bool setCredential(chip::EndpointId endpointId, uint16_t credentialIndex, chip::FabricIndex creator, chip::FabricIndex modifier, - DlCredentialStatus credentialStatus, CredentialTypeEnum credentialType, const chip::ByteSpan & credentialData) + DlCredentialStatus credentialStatus, CredentialTypeEnum credentialType, + const chip::ByteSpan & credentialData) { auto ep = findEndpoint(endpointId); if (!ep) @@ -177,8 +179,7 @@ class LockManager { endpoints[0].id = 1; uint8_t pin[6] = { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36 }; - endpoints[0].credentials[0].set(DlCredentialStatus::kOccupied, - CredentialTypeEnum::kPin, chip::ByteSpan(pin)); + endpoints[0].credentials[0].set(DlCredentialStatus::kOccupied, CredentialTypeEnum::kPin, chip::ByteSpan(pin)); endpoints[0].users[0].set(chip::CharSpan("default"), 1, UserStatusEnum::kOccupiedEnabled, UserTypeEnum::kUnrestrictedUser, CredentialRuleEnum::kSingle); endpoints[0].users[0].addCredential(CredentialTypeEnum::kPin, 1);