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

Actually assign the color mode during audio playback

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

+ 3 - 3
dmx/projectorPower.pl

@@ -145,7 +145,7 @@ while (1) {
 	}
 
 	# Calculate the color mode
-	# LOW for playback
+	# LOW for playback, including audio
 	# 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)
@@ -155,12 +155,12 @@ while (1) {
 		} else {
 			$color = $COLOR_LOW;
 		}
+	} elsif ($exists{'PLAYING_TYPE'} eq 'Audio') {
+		$color = $COLOR_LOW;
 	} elsif (!$exists{'GUI'}) {
 		$color = $COLOR_LOW;
 	} elsif ($elapsed > $TIMEOUT / 2) {
 		$color = $COLOR_LOW;
-	} elsif ($exists{'PLAYING_TYPE'} eq 'Audio') {
-		$COLOR_LOW;
 	} else {
 		$color = $COLOR_HIGH;
 	}