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:
810feed
)
save to log only if we have it
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 4 Oct 2010 12:28:42 +0000
(14:28 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 4 Oct 2010 12:28:42 +0000
(14:28 +0200)
scripts/scan.pl
patch
|
blob
|
history
diff --git
a/scripts/scan.pl
b/scripts/scan.pl
index
dd281a7
..
0b59111
100755
(executable)
--- a/
scripts/scan.pl
+++ b/
scripts/scan.pl
@@
-44,7
+44,7
@@
sub iso_date {
sub log_tag {
my $tag = shift;
- return if $saved->{tag};
+ return if $saved->{tag}
or ! $log
;
my $hash = Biblio::RFID::RFID501->to_hash( $rfid->blocks($tag) );
open(my $fh, '>>', $log) || die "$log: $!";
print $fh iso_date,",$tag,", $hash->{content}, "\n";