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 nivi-apple committed Apr 30, 2024
1 parent 2db400e commit e964cd1
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 134 deletions.
23 changes: 11 additions & 12 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2392,24 +2392,23 @@ - (void)_noteChangeForClusterPath:(MTRClusterPath *)clusterPath
- (BOOL)_isAttributeAffectingDeviceConfigurationChanged:(MTRAttributePath *)attributePath
{
// Check for attributes in the descriptor cluster that affect device configuration changed.
if (attributePath.cluster.unsignedLongValue == MTRClusterIDTypeDescriptorID)
{
if (attributePath.cluster.unsignedLongValue == MTRClusterIDTypeDescriptorID) {
switch (attributePath.attribute.unsignedLongValue) {
case MTRAttributeIDTypeClusterDescriptorAttributePartsListID:
case MTRAttributeIDTypeClusterDescriptorAttributeServerListID:
case MTRAttributeIDTypeClusterDescriptorAttributeDeviceTypeListID: {
return YES;
}
case MTRAttributeIDTypeClusterDescriptorAttributePartsListID:
case MTRAttributeIDTypeClusterDescriptorAttributeServerListID:
case MTRAttributeIDTypeClusterDescriptorAttributeDeviceTypeListID: {
return YES;
}
}
}

// Check for global attributes that affect device configuration changed.
switch (attributePath.attribute.unsignedLongValue) {
case MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID:
case MTRAttributeIDTypeGlobalAttributeAttributeListID:
case MTRAttributeIDTypeGlobalAttributeClusterRevisionID:
case MTRAttributeIDTypeGlobalAttributeFeatureMapID:
return YES;
case MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID:
case MTRAttributeIDTypeGlobalAttributeAttributeListID:
case MTRAttributeIDTypeGlobalAttributeClusterRevisionID:
case MTRAttributeIDTypeGlobalAttributeFeatureMapID:
return YES;
}
return NO;
}
Expand Down
Loading

0 comments on commit e964cd1

Please sign in to comment.