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:
9e43404
)
fix implementation of blank
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Oct 2014 13:45:37 +0000
(14:45 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Oct 2014 13:45:37 +0000
(14:45 +0100)
scripts/program.pl
patch
|
blob
|
history
diff --git
a/scripts/program.pl
b/scripts/program.pl
index
ec33b88
..
45a06b3
100755
(executable)
--- a/
scripts/program.pl
+++ b/
scripts/program.pl
@@
-39,8
+39,7
@@
$Biblio::RFID::debug = $debug;
foreach my $tag ( $rfid->tags ) {
warn "visible $tag\n";
next unless $tag eq $sid;
- if ( $blank ) {
-warn dump( $blank );
+ if ( grep { defined $_ } values $blank ) {
my $type = ( grep { $blank->{$_} } keys %$blank )[0];
warn "BLANK $type $tag\n";
$rfid->write_blocks( $tag => Biblio::RFID::RFID501->$type );