fix write_afi
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 3 Apr 2014 11:38:32 +0000 (13:38 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 3 Apr 2014 11:38:32 +0000 (13:38 +0200)
scripts/RFID-JSONP-server.pl

index 8d44048..6867f81 100755 (executable)
@@ -178,7 +178,7 @@ sub http_server {
                                        $status = 302;
 
                                        warn "SECURE $tag $data\n";
-                                       $rfid->write_afi( $tag => hex($data) );
+                                       $rfid->write_afi( $tag => chr(hex($data)) );
                                }
 
                                if ( $json ) {