summaryrefslogtreecommitdiff
path: root/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/reader.c b/reader.c
index 5f1316b..f90ea52 100644
--- a/reader.c
+++ b/reader.c
@@ -97,9 +97,12 @@ static void reader_print_tag(nfc_tag_info_t tag){
case tag_desfire: type = "DESF"; break;
}
- printf("[%s:%lu", type, tag.bytes_available);
+ printf("[%s:%lu ", type, tag.bytes_available);
+ if(tag.static_length){
+ printf("D:%lu:%lu ", tag.static_length, tag.dynamic_length);
+ }
for(n = 0; n < tag.uid_length; n++){
- printf(" %02X", tag.uid[n]);
+ printf("%02X", tag.uid[n]);
}
printf("]");
}
@@ -145,6 +148,7 @@ static int reader_process(){
printf("Slot %2lu: ", n);
reader_print_tag(tags[n].info);
printf(" valid\n");
+ printf("%s\n", tags[n].info.static_data);
//TODO
return 0;
}