Browse files

syntax fix

  • Loading branch information...
1 parent ec20dd3 commit f3d1aabff3231ab4c741e1ea573aeb035e2bf284 @muzy committed Jul 25, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 lcdtool.pl
View
8 lcdtool.pl 100644 → 100755
@@ -11,19 +11,17 @@
my $config = Config::Tiny->read('config.ini');
-my @lines;
-
my $client = IO::LCDproc::Client->new(name => $config->{_}->{name});
my $screen = IO::LCDproc::Screen->new(name => $config->{_}->{screen_name}, heartbeat => $config->{_}->{heartbeat});
-$lines[1] = IO::LCDproc::Widget->new(
+my $first = IO::LCDproc::Widget->new(
name => "first", align => "center", xPos => 1, yPos => 1
);
-$lines[2] = IO::LCDproc::Widget->new(
+my $second = IO::LCDproc::Widget->new(
name => "second", align => "center", xPos => 1, yPos => 2
);
$client->add( $screen );
-$screen->add( $lines[1] $lines[2] );
+$screen->add( $first $second );
$client->connect() or die "cannot connect: $!";
$client->initialize();

0 comments on commit f3d1aab

Please sign in to comment.