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

+ 1 - 3
dmx/announce.pl

@@ -34,14 +34,12 @@ DMX::stateSubscribe($STATE_SOCK);
 # Loop forever
 # Loop forever
 while (1) {
 while (1) {
 
 
-	# State is calculated; use newState to gather data
-	my $newState = $state;
+	# Remember the last state, for comparison
 	%last = %exists;
 	%last = %exists;
 
 
 	# Wait for state updates
 	# Wait for state updates
 	my $cmdState = DMX::readState($DELAY, \%exists, undef(), undef());
 	my $cmdState = DMX::readState($DELAY, \%exists, undef(), undef());
 	if (defined($cmdState)) {
 	if (defined($cmdState)) {
-		$newState = $cmdState;
 		$pullLast = time();
 		$pullLast = time();
 	}
 	}