Make code more readable
This commit is contained in:
parent
090b14e38e
commit
e8d16b35e2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue