Преглед на файлове

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 преди 14 години
родител
ревизия
578e3e6fad
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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';