Explorar o código

Not sure why we check the state here either. Presumably it will come to me if I make this change and we do.

Zachary Kotlarek %!s(int64=14) %!d(string=hai) anos
pai
achega
578e3e6fad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dmx/rope.pl

+ 1 - 1
dmx/rope.pl

@@ -207,7 +207,7 @@ while (1) {
 
 		# If the projector is off, check the timeouts
 		my $timeSinceUpdate = time() - $updateLast;
-		if ($state ne 'OFF' && $timeSinceUpdate > $TIMEOUT) {
+		if ($timeSinceUpdate > $TIMEOUT) {
 			$state = 'OFF';
 		} elsif ($timeSinceUpdate < $TIMEOUT) {
 			$state = 'MOTION';