From 8f3923ac974fc87ad967e5096c83e03f3249a5ea Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 16:38:57 +0200 Subject: [PATCH] Fix --- feature/motheure-simple/source/loop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )