Invert motor state
This commit is contained in:
parent
a31f94585b
commit
4b191e6d3f
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue