Explorar el 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 hace 14 años
padre
commit
578e3e6fad
Se han modificado 1 ficheros con 1 adiciones y 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';