Sfoglia il codice sorgente

Only speak "ON" or "OFF" as projector modes

Zachary Kotlarek 10 anni fa
parent
commit
b466c9136e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      dmx/announce.pl

+ 1 - 1
dmx/announce.pl

@@ -148,7 +148,7 @@ while (1) {
 		&& exists($last{'PROJECTOR_CTRL_POWER'})
 		&& exists($last{'PROJECTOR_CTRL_POWER'})
 		&& $exists{'PROJECTOR_CTRL_POWER'} ne $last{'PROJECTOR_CTRL_POWER'})
 		&& $exists{'PROJECTOR_CTRL_POWER'} ne $last{'PROJECTOR_CTRL_POWER'})
 	{
 	{
-		if ($exists{'PROJECTOR_CTRL_POWER'} ne 'SHUTDOWN') {
+		if ($exists{'PROJECTOR_CTRL_POWER'} eq 'OFF' && $exists{'PROJECTOR_CTRL_POWER'} eq 'ON') {
 			$projLast = 0;
 			$projLast = 0;
 			DMX::say('Projector: ' . lc($exists{'PROJECTOR_CTRL_POWER'}));
 			DMX::say('Projector: ' . lc($exists{'PROJECTOR_CTRL_POWER'}));