Browse Source

Use the new 4-parameter interface. Tweak delay times.

Zachary Kotlarek 14 years ago
parent
commit
13051d3f72
1 changed files with 3 additions and 3 deletions
  1. 3 3
      dmx/rope.pl

+ 3 - 3
dmx/rope.pl

@@ -7,7 +7,7 @@ use File::Temp qw( tempfile );
 
 # Prototypes
 sub mtime($);
-sub dim(%);
+sub dim($);
 
 # Channels:
 #	0  => All channels
@@ -262,12 +262,12 @@ sub mtime($) {
 }
 
 # Send the command
-sub dim(%) {
+sub dim($) {
 	my ($args) = @_;
 	if (! defined($args->{'delay'})) {
 		$args->{'delay'} = 0;
 	}
-	if (! defined($args->{'channel'}) || ! defined($args->{'channel'}) || ! defined($args->{'channel'})) {
+	if (! defined($args->{'channel'}) || ! defined($args->{'time'}) || ! defined($args->{'value'})) {
 		die('Invalid command for socket: ' . join(', ', keys(%{$args})) . ': ' . join(', ', values(%{$args})) . "\n");
 	}