瀏覽代碼

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';