Skip to content

Commit

Permalink
Restyled by whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and lpbeliveau-silabs committed Jul 29, 2024
1 parent 35f7222 commit 682464b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/app/clusters/scenes-server/scenes-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void AddSceneParse(CommandHandlerInterface::HandlerContext & ctx, const CommandD
{
ResponseType response;
uint16_t endpointTableSize = 0;

ReturnOnFailure(
AddResponseOnError(ctx, response, Attributes::SceneTableSize::Get(ctx.mRequestPath.mEndpointId, &endpointTableSize)));

Expand All @@ -376,7 +376,8 @@ void AddSceneParse(CommandHandlerInterface::HandlerContext & ctx, const CommandD
response.sceneID = req.sceneID;

// Verify the attributes are respecting constraints
if (req.transitionTime > scenes::kScenesMaxTransitionTime || req.sceneName.size() > scenes::kSceneNameMaxLength || req.sceneID == scenes::kUndefinedSceneId)
if (req.transitionTime > scenes::kScenesMaxTransitionTime || req.sceneName.size() > scenes::kSceneNameMaxLength ||
req.sceneID == scenes::kUndefinedSceneId)
{
response.status = to_underlying(Protocols::InteractionModel::Status::ConstraintError);
ctx.mCommandHandler.AddResponse(ctx.mRequestPath, response);
Expand Down Expand Up @@ -555,7 +556,7 @@ CHIP_ERROR StoreSceneParse(const FabricIndex & fabricIdx, const EndpointId & end

// Get Scene Table Instance
SceneTable * sceneTable = scenes::GetSceneTableImpl(endpointID, endpointTableSize);

// Verify Endpoint in group
VerifyOrReturnError(nullptr != groupProvider, CHIP_ERROR_INTERNAL);
if (0 != groupID && !groupProvider->HasEndpoint(fabricIdx, groupID, endpointID))
Expand Down
18 changes: 9 additions & 9 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ tests:
value: GI
- name: "SceneID"
value: 0x01

- label:
"Step 2d: TH sends a StoreScene command to DUT with the GroupID field
set to G1 and the SceneID field set to 0xFF, which is outside of the
set to G1 and the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID."
PICS: S.S.C04.Rsp
command: "StoreScene"
Expand Down Expand Up @@ -467,7 +467,7 @@ tests:

- label:
"Step 4e: TH sends a RecallScene command to DUT with the GroupID field
set to G1 and the SceneID field set to 0xFF, which is outside of the
set to G1 and the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID."
PICS: S.S.C05.Rsp
command: "RecallScene"
Expand Down Expand Up @@ -593,7 +593,7 @@ tests:

- label:
"Step 5d: TH sends a ViewScene command to DUT with the GroupID field
set to G1 and the SceneID field set to 0xFF, which is outside of the
set to G1 and the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID."
PICS: S.S.C01.Rsp
command: "ViewScene"
Expand Down Expand Up @@ -845,10 +845,10 @@ tests:

- label:
"Step 8f: TH sends a AddScene command to DUT with the GroupID field
set to G1, the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID, the TransitionTime field set
to 1000 (1s) and no extension field sets. This should
fail and return a status of 0x87 (CONSTRAINT_ERROR)."
set to G1, the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID, the TransitionTime field set to 1000 (1s)
and no extension field sets. This should fail and return a status of
0x87 (CONSTRAINT_ERROR)."
PICS: S.S.C00.Rsp
command: "AddScene"
arguments:
Expand Down Expand Up @@ -935,7 +935,7 @@ tests:

- label:
"Step 9d: TH sends a RemoveScene command to DUT with the GroupID field
set to G1 and the SceneID field set to 0xFF, which is outside of the
set to G1 and the SceneID field set to 0xFF, which is outside of the
constraints for a SceneID."
PICS: S.S.C02.Rsp
command: "RemoveScene"
Expand Down

0 comments on commit 682464b

Please sign in to comment.