Zachary Kotlarek пре 12 година
родитељ
комит
6acf09d464
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      dmx/announce.pl
  2. 1 1
      dmx/rave.pl

+ 1 - 1
dmx/announce.pl

@@ -90,7 +90,7 @@ while (1) {
 	}
 
 	# Ongoing ALARM
-	if (exists($exists{'ALARM'}) && $exists{'ALARM'}) {
+	if ($exists{'ALARM'}) {
 		if ($now - $speakLast > $SPEAK_DELAY) {
 			$speakLast = $now;
 			DMX::say('Unauthorized access detected.');

+ 1 - 1
dmx/rave.pl

@@ -161,7 +161,7 @@ while (1) {
 	}
 
 	# Alert continuously on ALARM
-	if (exists($exists{'ALARM'}) && $exists{'ALARM'}) {
+	if ($exists{'ALARM'}) {
 		$newState = 'RED_ALERT';
 	}