Explorar el Código

Allow transitions from PLAY->MOTION

Zachary Kotlarek hace 14 años
padre
commit
4b331f6088
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dmx/rope.pl

+ 1 - 1
dmx/rope.pl

@@ -209,7 +209,7 @@ while (1) {
 		my $timeSinceUpdate = time() - $updateLast;
 		if ($state ne 'OFF' && $timeSinceUpdate > $TIMEOUT) {
 			$state = 'OFF';
-		} elsif ($state eq 'OFF' && $timeSinceUpdate < $TIMEOUT) {
+		} elsif ($timeSinceUpdate < $TIMEOUT) {
 			$state = 'MOTION';
 		}
 	}