This commit is contained in:
xdrm-brackets 2017-10-14 09:29:00 +02:00
parent 47339b67fc
commit 7c6bc2dc2d
1 changed files with 3 additions and 2 deletions

View File

@ -32,13 +32,14 @@
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" );
/* (3) If active, pass */
var_dump($STATE);
if( $STATE == 0 ){
slog('read: 1', 'motheure-simple:loop', 'motheure');
// slog('read: 1', 'motheure-simple:loop', 'motheure');
return true;
}
/* (4) Return FALSE means motor inactive */
slog('read: 0', 'motheure-simple:loop', 'motheure');
// slog('read: 0', 'motheure-simple:loop', 'motheure');
return false;
}