diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index e683213..1b57bd8 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -31,7 +31,7 @@ foreach($MOTOR_PIN as $PIN){ /* (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 */ if( $STATE === true )