Skip to content

Commit 2230a1a

Browse files
Update src/app/clusters/on-off-server/on-off-server.cpp
Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent a74b4ce commit 2230a1a

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
@@ -92,7 +92,7 @@ void UpdateModeBaseCurrentModeToOnMode(EndpointId endpoint)
9292
template <typename EnumType>
9393
bool isKnownEnumValue(EnumType value)
9494
{
95-
return (EnsureKnownEnumValue(value) == EnumType::kUnknownEnumValue) ? false : true;
95+
return (EnsureKnownEnumValue(value) != EnumType::kUnknownEnumValue);
9696
}
9797

9898
} // namespace

0 commit comments

Comments
 (0)