Przeglądaj źródła

Ignore the "UNKNOWN" amp state when setting the channel mode

Zachary Kotlarek 13 lat temu
rodzic
commit
f248f8da74
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dmx/amplifierPower.pl

+ 2 - 2
dmx/amplifierPower.pl

@@ -104,8 +104,8 @@ while (1) {
 		}
 	}
 
-	# Set the channel mode as needed
-	if ($exists{'AMPLIFIER_MODE'} ne $mode) {
+	# Set the channel mode as needed, but do not change when the mode is "UNKNOWN"
+	if ($exists{'AMPLIFIER_MODE'} ne $mode && $exists{'AMPLIFIER_MODE'} ne 'UNKNOWN') {
 		if ($DEBUG) {
 			print STDERR 'Setting mode to: ' . $mode . "\n";
 		}