From 7906d37cf70070bbedc6f31b08ace02c95991a09 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:33:19 +0200 Subject: [PATCH] Fix --- feature/motheure-simple/source/loop.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index d49ab7b..72bedc1 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -32,9 +32,7 @@ $STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" ); /* (3) If active, pass */ - var_dump($STATE); - if( $STATE == 0 ){ - // slog('read: 1', 'motheure-simple:loop', 'motheure'); + if( $STATE === true ){ return true; }