use lib 'lib';
BEGIN {
- use_ok( 'RFID::Biblio::3M810' );
+ use_ok( 'RFID::Biblio::Reader::3M810' );
}
-ok( my $o = RFID::Biblio::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
+ok( my $o = RFID::Biblio::Reader::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
ok( my @tags = $o->inventory, 'inventory' );
diag dump @tags;
ok( my $afi = $o->read_afi( $tag ), "read_afi $tag" );
- ok( $o->write_blocks( $tag, $blocks->{tag} ), "write_blocks $tag" );
+ ok( $o->write_blocks( $tag, $blocks->{$tag} ), "write_blocks $tag" );
my $new_afi = "\x42";