Просмотр исходного кода

High brightness when playing with lights up

Zachary Kotlarek 13 лет назад
Родитель
Сommit
3c774dcb60
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      dmx/projectorPower.pl

+ 9 - 2
dmx/projectorPower.pl

@@ -145,10 +145,17 @@ while (1) {
 	}
 
 	# Calculate the color mode
-	# Always LOW for playback
+	# LOW for playback
+	# HIGH when playing and LIGHTS
 	# HIGH when the GUI is up
 	# LOW again when the GUI is up for half the timeout (to save the bulb)
-	if (!$exists{'GUI'} || $newState eq 'PLAY') {
+	if ($newState eq 'PLAY') {
+		if ($exists{'LIGHTS'}) {
+			$color = $COLOR_HIGH;
+		} else {
+			$color = $COLOR_LOW;
+		}
+	} elsif (!$exists{'GUI'}) {
 		$color = $COLOR_LOW;
 	} elsif ($elapsed > $TIMEOUT / 2) {
 		$color = $COLOR_LOW;