use SCX::Reader;
my @controllers = (0, 0, 0, 0, 0, 0);
+my $no_reader = 0;
my $builder = Gtk2::Builder->new;
$builder->add_from_file('slotcarman.glade');
portname => '/dev/ttyUSB0',
logfile => 'log',
callback => \&do_packet,
-});
+}) if !$no_reader;
sub scx_read {
my $event = shift;
return TRUE;
}
-Glib::IO->add_watch(fileno($reader->fh), 'in', \&scx_read, 1);
+Glib::IO->add_watch(fileno($reader->fh), 'in', \&scx_read, 1)
+ if !$no_reader;
Gtk2->main();