Skip to content

Commit 4ed3d8b

Browse files
address comment
1 parent ab35233 commit 4ed3d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/clusters/on-off-server/on-off-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ bool OnOffServer::offWithEffectCommand(app::CommandHandler * commandObj, const a
615615
chip::EndpointId endpoint = commandPath.mEndpointId;
616616
Status status = Status::Success;
617617

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

0 commit comments

Comments
 (0)