Invert motor state

This commit is contained in:
xdrm-brackets 2017-10-14 09:22:03 +02:00
parent a31f94585b
commit 4b191e6d3f
1 changed files with 4 additions and 4 deletions

View File

@ -35,12 +35,12 @@
if( is_bool($STATE) ) if( is_bool($STATE) )
return false; return false;
/* (3) If inactive, pass */ /* (3) If active, pass */
if( $STATE == 0 ) if( $STATE == 0 )
return false; return true;
/* (4) Return TRUE means motor active */ /* (4) Return FALSE means motor inactive */
return true; return false;
} }