Invert motor state
This commit is contained in:
parent
a31f94585b
commit
4b191e6d3f
|
@ -35,13 +35,13 @@
|
|||
if( is_bool($STATE) )
|
||||
return false;
|
||||
|
||||
/* (3) If inactive, pass */
|
||||
/* (3) If active, pass */
|
||||
if( $STATE == 0 )
|
||||
return false;
|
||||
|
||||
/* (4) Return TRUE means motor active */
|
||||
return true;
|
||||
|
||||
/* (4) Return FALSE means motor inactive */
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue