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

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

Zachary Kotlarek 10 лет назад
Родитель
Сommit
b466c9136e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dmx/announce.pl

+ 1 - 1
dmx/announce.pl

@@ -148,7 +148,7 @@ while (1) {
 		&& exists($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;
 			DMX::say('Projector: ' . lc($exists{'PROJECTOR_CTRL_POWER'}));