Skip to content

Commit

Permalink
fixes bug with speed to being set correctly and also allows the effec…
Browse files Browse the repository at this point in the history
…t for pic to be set on the command line
  • Loading branch information
gravengaard committed Dec 24, 2013
1 parent 4ea0923 commit b2819b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/lowlevel.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@

my $type = 'text';
my $speed = 1;
my $effect = 'hold';

my $options_result = GetOptions(
'type=s' => \$type,
'speed=i' => \$type,
'speed=i' => \$speed,
'effect=s' => \$effect,
);

my $height = 0;
Expand Down Expand Up @@ -54,7 +56,7 @@
);
$sign->addMsg(
data => $pic,
effect => 'hold',
effect => $effect,
# For multiple messages, the speed seems to control transition speed in
# multi-message mode.
speed => $speed,
Expand Down

0 comments on commit b2819b4

Please sign in to comment.