Quellcode durchsuchen

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 vor 14 Jahren
Ursprung
Commit
578e3e6fad
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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';