Fix motor state
This commit is contained in:
parent
0bd11d027f
commit
47339b67fc
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue