X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=inline;f=lib%2FBiblio%2FRFID%2FReader%2F3M810.pm;h=6953571f57be0e499951297ef6afff9dedc9215f;hb=ec78566cc9572e9a76afe5f3fa5fbb5054632d59;hp=b5bd26d3af022da7513f66ed7eb515ee631dab7f;hpb=100cc8f0b604e0f94cb448985f502b68265ede56;p=Biblio-RFID.git diff --git a/lib/Biblio/RFID/Reader/3M810.pm b/lib/Biblio/RFID/Reader/3M810.pm index b5bd26d..6953571 100644 --- a/lib/Biblio/RFID/Reader/3M810.pm +++ b/lib/Biblio/RFID/Reader/3M810.pm @@ -208,9 +208,9 @@ sub read_blocks { } elsif ( $rest = _matched $data => 'FE 00 00 05 01' ) { warn "FIXME ready? ",as_hex $rest; } elsif ( $rest = _matched $data => '02 06' ) { - die "ERROR ",as_hex($rest); + die "ERROR ",as_hex($data); } else { - die "FIXME unsuported ",as_hex($rest); + die "FIXME unsuported ",as_hex($data); } }); @@ -243,9 +243,9 @@ sub write_blocks { my $blocks = substr($rest,8,1); warn "# WRITE ",as_hex($tag), " [$blocks]\n"; } elsif ( $rest = _matched $data => '04 06' ) { - die "ERROR ",as_hex($rest); + die "ERROR ",as_hex($data); } else { - die "UNSUPPORTED"; + die "UNSUPPORTED ", as_hex($data); } } );