Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs committed Jul 18, 2024
1 parent ab35233 commit 4ed3d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/on-off-server/on-off-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ bool OnOffServer::offWithEffectCommand(app::CommandHandler * commandObj, const a
chip::EndpointId endpoint = commandPath.mEndpointId;
Status status = Status::Success;

if (isKnownEnumValue(effectId))
if (effectId != EffectIdentifierEnum::kUnknownEnumValue)
{
// Depending on effectId value, effectVariant enum type varies.
// The following check validates that effectVariant value is valid in relation to the applicable enum type.
Expand Down

0 comments on commit 4ed3d8b

Please sign in to comment.