Skip to content

Commit 623e064

Browse files
restyled-commitssuneelsignify
authored andcommitted
Restyled by whitespace
1 parent fce1492 commit 623e064

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/clusters/descriptor/descriptor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ CHIP_ERROR DescriptorAttrAccess::ReadEndpointUniqueId(EndpointId endpoint, Attri
217217
char epUniqueId[Attributes::EndpointUniqueId::TypeInfo::MaxLength() + 1] = { 0 };
218218
chip::MutableCharSpan epUniqueIdSpan(epUniqueId);
219219
GetEndpointUniqueIdForEndPoint(endpoint, epUniqueIdSpan);
220-
220+
221221
return aEncoder.Encode(epUniqueIdSpan);
222222
}
223223

src/app/util/af-types.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ struct EmberAfDefinedEndpoint
238238
chip::Span<const chip::app::Clusters::Descriptor::Structs::SemanticTagStruct::Type> tagList;
239239

240240
/**
241-
* Unique Id for this end point.
241+
* Unique Id for this end point.
242242
*/
243243
char endpointUniqueId[chip::app::Clusters::Descriptor::Attributes::EndpointUniqueId::TypeInfo::MaxLength()] = {0};
244244
};

src/app/util/attribute-storage.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ CHIP_ERROR emberAfSetDynamicEndpoint(uint16_t index, EndpointId id, const EmberA
321321
emAfEndpoints[index].deviceTypeList = deviceTypeList;
322322
emAfEndpoints[index].endpointType = ep;
323323
emAfEndpoints[index].dataVersions = dataVersionStorage.data();
324-
memcpy((void *)(emAfEndpoints[index].endpointUniqueId), endpointUniqueId.data(),
325-
endpointUniqueId.size() > Clusters::Descriptor::Attributes::EndpointUniqueId::TypeInfo::MaxLength()?
324+
memcpy((void *)(emAfEndpoints[index].endpointUniqueId), endpointUniqueId.data(),
325+
endpointUniqueId.size() > Clusters::Descriptor::Attributes::EndpointUniqueId::TypeInfo::MaxLength()?
326326
Clusters::Descriptor::Attributes::EndpointUniqueId::TypeInfo::MaxLength() : endpointUniqueId.size());
327327

328328
// Start the endpoint off as disabled.
@@ -1092,7 +1092,7 @@ CHIP_ERROR GetEndpointUniqueIdForEndPoint(EndpointId endpoint, chip::MutableChar
10921092
{
10931093
return CHIP_ERROR_NOT_FOUND;
10941094
}
1095-
chip::CharSpan epUniqueIdSpan(emAfEndpoints[endpointIndex].endpointUniqueId,
1095+
chip::CharSpan epUniqueIdSpan(emAfEndpoints[endpointIndex].endpointUniqueId,
10961096
strnlen(emAfEndpoints[endpointIndex].endpointUniqueId,
10971097
Clusters::Descriptor::Attributes::EndpointUniqueId::TypeInfo::MaxLength()));
10981098
chip::CopyCharSpanToMutableCharSpan(epUniqueIdSpan, epUniqueIdMutSpan);

src/app/util/attribute-storage.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void emberAfEndpointConfigure();
250250
// An optional device type list can be passed in as well. If provided, the memory
251251
// backing the list needs to remain allocated until this dynamic endpoint is cleared.
252252
//
253-
// An optional endpointUniqueId can be passed.
253+
// An optional endpointUniqueId can be passed.
254254
//
255255
// An optional parent endpoint id should be passed for child endpoints of composed device.
256256
//
@@ -262,7 +262,7 @@ void emberAfEndpointConfigure();
262262
CHIP_ERROR emberAfSetDynamicEndpoint(uint16_t index, chip::EndpointId id, const EmberAfEndpointType * ep,
263263
const chip::Span<chip::DataVersion> & dataVersionStorage,
264264
chip::Span<const EmberAfDeviceType> deviceTypeList = {},
265-
chip::CharSpan endpointUniqueId ={},
265+
chip::CharSpan endpointUniqueId ={},
266266
chip::EndpointId parentEndpointId = chip::kInvalidEndpointId);
267267
chip::EndpointId emberAfClearDynamicEndpoint(uint16_t index);
268268
uint16_t emberAfGetDynamicIndexFromEndpoint(chip::EndpointId id);

0 commit comments

Comments
 (0)