Fix motor state

This commit is contained in:
xdrm-brackets 2017-10-14 09:26:06 +02:00
parent 0bd11d027f
commit 47339b67fc
1 changed files with 0 additions and 6 deletions

View File

@ -31,12 +31,6 @@
/* (1) Get its state */
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" );
/* (2) If invalid */
if( is_bool($STATE) ){
slog('read: 0', 'motheure-simple:loop', 'motheure');
return false;
}
/* (3) If active, pass */
if( $STATE == 0 ){
slog('read: 1', 'motheure-simple:loop', 'motheure');