Skip to content

Commit

Permalink
restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbreton committed Aug 7, 2023
1 parent ffc241a commit 6997709
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/clusters/scenes-server/scenes-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,19 +511,19 @@ void ScenesServer::GroupWillBeRemoved(FabricIndex aFabricIx, EndpointId aEndpoin
VerifyOrReturn(nullptr != sceneTable);

chip::GroupId currentGroup;
Attributes::CurrentGroup::Get(aEndpointId,&currentGroup);
Attributes::CurrentGroup::Get(aEndpointId, &currentGroup);

chip::SceneId currentScene;
Attributes::CurrentScene::Get(aEndpointId,&currentScene);
Attributes::CurrentScene::Get(aEndpointId, &currentScene);

//Validate if the Current Group = RemovedGroup or check if CurrentScene is in RemovedGroup before invalidating the scene.
// Validate if the Current Group = RemovedGroup or check if CurrentScene is in RemovedGroup before invalidating the scene.
SceneTableEntry entry;
if(aGroupId == currentGroup || sceneTable->GetSceneTableEntry(aFabricIx,SceneStorageId(currentScene,currentGroup),entry) == CHIP_NO_ERROR)
if (aGroupId == currentGroup ||
sceneTable->GetSceneTableEntry(aFabricIx, SceneStorageId(currentScene, currentGroup), entry) == CHIP_NO_ERROR)
{
MakeSceneInvalid(aEndpointId);
}


VerifyOrReturn(nullptr != mGroupProvider);
if (0 != aGroupId && !mGroupProvider->HasEndpoint(aFabricIx, aGroupId, aEndpointId))
{
Expand Down

0 comments on commit 6997709

Please sign in to comment.