From 4b191e6d3fbbdbfce3b1aa88350e302aff11bc32 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:22:03 +0200 Subject: [PATCH] Invert motor state --- feature/motheure-simple/source/loop.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index e188c63..dc4c3c7 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -35,12 +35,12 @@ if( is_bool($STATE) ) return false; - /* (3) If inactive, pass */ + /* (3) If active, pass */ if( $STATE == 0 ) - return false; + return true; - /* (4) Return TRUE means motor active */ - return true; + /* (4) Return FALSE means motor inactive */ + return false; }