projects
/
Biblio-RFID.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dee69b
)
added --debug flag (repeatable)
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 9 Aug 2010 14:18:04 +0000
(16:18 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 9 Aug 2010 14:18:04 +0000
(16:18 +0200)
scripts/scan.pl
patch
|
blob
|
history
diff --git
a/scripts/scan.pl
b/scripts/scan.pl
index
44156a7
..
f4ec02a
100755
(executable)
--- a/
scripts/scan.pl
+++ b/
scripts/scan.pl
@@
-11,13
+11,16
@@
use RFID::Biblio::RFID501;
my $loop = 0;
my $reader;
+my $debug = 0;
GetOptions(
'loop!' => \$loop,
'reader=s', => \$reader,
+ 'debug+' => \$debug,
) || die $!;
my $rfid = RFID::Biblio::Reader->new( $reader );
+$RFID::Biblio::debug = $debug;
do {
my @visible = $rfid->tags;