Make code more readable

This commit is contained in:
GHOSCHT 2022-04-11 16:33:27 +02:00
parent 31c864f140
commit 1abc699b07
No known key found for this signature in database
GPG key ID: A35BD466B8871994

View file

@ -86,12 +86,12 @@ void LightController::parseRelativeState(const char data[], int index, int steps
void LightController::setAbsoluteState(const char data[], int index)
{
if (!strcmp(data, "off"))
if (strcmp(data, "off") == 0)
{
bjtState[index] = 0;
}
if (!strcmp(data, "on"))
if (strcmp(data, "on") == 0)
{
bjtState[index] = 255;
}