Zachary Kotlarek 13 سال پیش
والد
کامیت
5d506d49a7
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 1 1
      dmx/bias.pl
  2. 3 2
      dmx/leds.pl

+ 1 - 1
dmx/bias.pl

@@ -150,7 +150,7 @@ while (1) {
 
 	# Accept the new state directly
 	$stateLast = $state;
-	$state = $newState;
+	$state     = $newState;
 
 	# Force updates on a periodic basis
 	if (time() - $pushLast > $PUSH_TIMEOUT) {

+ 3 - 2
dmx/leds.pl

@@ -64,6 +64,7 @@ my $STATE_SOCK   = $DATA_DIR . 'LED.socket';
 my $MAX_CMD_LEN  = 1024;
 my $PUSH_TIMEOUT = 20;
 my $PULL_TIMEOUT = 60;
+
 # Reset the push timeout if the color timeout is longer
 if ($PUSH_TIMEOUT < $COLOR_TIMEOUT) {
 	$PUSH_TIMEOUT = $COLOR_TIMEOUT;
@@ -354,8 +355,8 @@ sub red_alert() {
 		dim($data);
 	}
 
-	my %high  = ('channel' => 14, 'value' => 255, 'time' => $ramp);
-	my %low   = %high;
+	my %high = ('channel' => 14, 'value' => 255, 'time' => $ramp);
+	my %low = %high;
 	$low{'value'} = 64;
 
 	dim(\%high);