From 7c6bc2dc2d976f06d8f76480888455dd4fffa06d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:29:00 +0200 Subject: [PATCH] debug --- feature/motheure-simple/source/loop.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index d175a12..d49ab7b 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -32,13 +32,14 @@ $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'); + // slog('read: 1', 'motheure-simple:loop', 'motheure'); return true; } /* (4) Return FALSE means motor inactive */ - slog('read: 0', 'motheure-simple:loop', 'motheure'); + // slog('read: 0', 'motheure-simple:loop', 'motheure'); return false; }