Zachary Kotlarek 13 лет назад
Родитель
Сommit
4df0eda4f3
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      dmx/leds.pl

+ 6 - 1
dmx/leds.pl

@@ -170,13 +170,18 @@ while (1) {
 				print STDERR 'Reaped child: ' . $PID . "\n";
 				print STDERR 'Reaped child: ' . $PID . "\n";
 			}
 			}
 
 
+			# Forget our local bypass state
 			$PID    = undef();
 			$PID    = undef();
 			$EFFECT = undef();
 			$EFFECT = undef();
 
 
+			# Clear the RAVE flag for other daemons
 			if (-e $RAVE_FILE) {
 			if (-e $RAVE_FILE) {
 				unlink($RAVE_FILE);
 				unlink($RAVE_FILE);
 			}
 			}
 
 
+			# Reset to standard
+			@COLOR       = ();
+			$colorChange = time() + $COLOR_TIME_MIN;
 			$update = 1;
 			$update = 1;
 		}
 		}
 	}
 	}
@@ -367,7 +372,7 @@ sub rave_loop() {
 		print STDERR "rave_loop()\n";
 		print STDERR "rave_loop()\n";
 	}
 	}
 
 
-	my $max_dur  = 500;
+	my $max_dur  = 350;
 	my $max_val  = 255;
 	my $max_val  = 255;
 	my %channels = (
 	my %channels = (
 		1  => 1,
 		1  => 1,