From 5e505459498c9981af40a97263c1a0d1e98a6031 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 6 Feb 2014 12:06:30 +0100 Subject: [PATCH] use new to_hash This allows code to decode both 15693 and 14443 cards --- scripts/RFID-JSONP-server.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/RFID-JSONP-server.pl b/scripts/RFID-JSONP-server.pl index b631265..dda08c8 100755 --- a/scripts/RFID-JSONP-server.pl +++ b/scripts/RFID-JSONP-server.pl @@ -97,7 +97,7 @@ sub http_server { my @tags = $rfid->tags; my $json = { time => time() }; foreach my $tag ( @tags ) { - my $hash = Biblio::RFID::RFID501->to_hash( $rfid->blocks( $tag ) ); + my $hash = $rfid->to_hash( $tag ); $hash->{sid} = $tag; $hash->{security} = uc unpack 'H*', $rfid->afi( $tag ); push @{ $json->{tags} }, $hash; -- 2.20.1