Fix
This commit is contained in:
parent
7c6bc2dc2d
commit
7906d37cf7
|
@ -32,9 +32,7 @@
|
||||||
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" );
|
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" );
|
||||||
|
|
||||||
/* (3) If active, pass */
|
/* (3) If active, pass */
|
||||||
var_dump($STATE);
|
if( $STATE === true ){
|
||||||
if( $STATE == 0 ){
|
|
||||||
// slog('read: 1', 'motheure-simple:loop', 'motheure');
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue