Fix
This commit is contained in:
parent
e7a7596aac
commit
8f3923ac97
|
@ -31,7 +31,7 @@
|
||||||
foreach($MOTOR_PIN as $PIN){
|
foreach($MOTOR_PIN as $PIN){
|
||||||
|
|
||||||
/* (1) Get its state */
|
/* (1) Get its state */
|
||||||
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" );
|
$STATE = syscall( SOURCE_DIR."/lib/gpio/in $PIN" );
|
||||||
|
|
||||||
/* (2) If at least one active return TRUE */
|
/* (2) If at least one active return TRUE */
|
||||||
if( $STATE === true )
|
if( $STATE === true )
|
||||||
|
|
Loading…
Reference in New Issue