From 6a2680b0b0420cbd4f090da65edfe4056856015f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:17:48 +0200 Subject: [PATCH] Invert motor state --- 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 e188c63..cbf368c 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -36,7 +36,7 @@ return false; /* (3) If inactive, pass */ - if( $STATE == 0 ) + if( $STATE == 1 ) return false; /* (4) Return TRUE means motor active */