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 hicklin committed Aug 21, 2024
1 parent 45a4004 commit d11c2ba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ struct AreaStructureWrapper : public chip::app::Clusters::ServiceArea::Structs::
memcpy(mAreaNameBuffer, locationName.data(), sizeToCopy);
areaDesc.locationInfo.Value().locationName = CharSpan(mAreaNameBuffer, sizeToCopy);

areaDesc.locationInfo.Value().floorNumber = floorNumber;
areaDesc.locationInfo.Value().areaType = areaType;
areaDesc.locationInfo.Value().floorNumber = floorNumber;
areaDesc.locationInfo.Value().areaType = areaType;

return *this;
}
Expand Down Expand Up @@ -322,7 +322,7 @@ struct MapStructureWrapper : public chip::app::Clusters::ServiceArea::Structs::M
*/
void Set(uint32_t aMapId, const CharSpan & aMapName)
{
mapID = aMapId;
mapID = aMapId;
// Copy the name. If the name is larger than kMapNameMaxSize, truncate it to fit.
auto sizeToCopy = std::min(kMapNameMaxSize, aMapName.size());
memcpy(mMapNameBuffer, aMapName.data(), sizeToCopy);
Expand Down

0 comments on commit d11c2ba

Please sign in to comment.