From 8142e69121f1bb53cef688084a5dbb9a11668673 Mon Sep 17 00:00:00 2001
From: Romuald Conty <romuald@libnfc.org>
Date: Thu, 14 Oct 2010 16:28:16 +0000
Subject: [PATCH] Fix a misunderstood Historical Bytes decoding

---
 examples/nfc-utils.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/examples/nfc-utils.c b/examples/nfc-utils.c
index 2d39096..78067a2 100644
--- a/examples/nfc-utils.c
+++ b/examples/nfc-utils.c
@@ -132,12 +132,8 @@ print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai)
     printf ("\n");
     if (nai.szAtsLen > offset) {
       // XXX More decoding can be done following ISO/IEC 7816-4 (8.1.1 Historical bytes)
-      printf ("                 T1: %02x\n", nai.abtAts[offset] );
-      offset++;
-      if (nai.szAtsLen > offset) {
-        printf ("                 Tk: " );
-        print_hex (nai.abtAts + offset, (nai.szAtsLen - offset));
-      }
+      printf ("   Historical bytes: " );
+      print_hex (nai.abtAts + offset, (nai.szAtsLen - offset));
     }
   }
   if ((nai.btSak & SAK_ISO14443_4_COMPLIANT) || (nai.btSak & SAK_ISO18092_COMPLIANT)) {