From 47339b67fc8cdc953124060b8c115e178874217c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:26:06 +0200 Subject: [PATCH] Fix motor state --- feature/motheure-simple/source/loop.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index 187c872..d175a12 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -31,12 +31,6 @@ /* (1) Get its state */ $STATE = syscall( SOURCE_DIR."/lib/gpio/in $MOTOR_PIN" ); - /* (2) If invalid */ - if( is_bool($STATE) ){ - slog('read: 0', 'motheure-simple:loop', 'motheure'); - return false; - } - /* (3) If active, pass */ if( $STATE == 0 ){ slog('read: 1', 'motheure-simple:loop', 'motheure');