|
16 | 16 | * limitations under the License.
|
17 | 17 | */
|
18 | 18 |
|
19 |
| - |
20 |
| -#include <cstring> |
21 |
| -#include <app/util/af.h> |
22 | 19 | #include <app-common/zap-generated/attributes/Accessors.h>
|
| 20 | +#include <app/util/af.h> |
| 21 | +#include <cstring> |
23 | 22 | #include <platform/CHIPDeviceLayer.h>
|
24 | 23 | #include <platform/internal/CHIPDeviceLayerInternal.h>
|
25 | 24 |
|
@@ -149,14 +148,14 @@ bool LockEndpoint::SetUser(uint16_t userIndex, chip::FabricIndex creator, chip::
|
149 | 148 | return false;
|
150 | 149 | }
|
151 | 150 |
|
152 |
| - userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE); |
| 151 | + userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE); |
153 | 152 | CopyCharSpanToMutableCharSpan(userName, userInStorage.userName);
|
154 |
| - userInStorage.userUniqueId = uniqueId; |
155 |
| - userInStorage.userStatus = userStatus; |
156 |
| - userInStorage.userType = usertype; |
157 |
| - userInStorage.credentialRule = credentialRule; |
158 |
| - userInStorage.lastModifiedBy = modifier; |
159 |
| - userInStorage.createdBy = creator; |
| 153 | + userInStorage.userUniqueId = uniqueId; |
| 154 | + userInStorage.userStatus = userStatus; |
| 155 | + userInStorage.userType = usertype; |
| 156 | + userInStorage.credentialRule = credentialRule; |
| 157 | + userInStorage.lastModifiedBy = modifier; |
| 158 | + userInStorage.createdBy = creator; |
160 | 159 |
|
161 | 160 | userInStorage.credentials.clear();
|
162 | 161 | for (size_t i = 0; i < totalCredentials; ++i)
|
|
0 commit comments