Display additional Mifare DESFire EV1 information if applicable.
This commit is contained in:
parent
42f9457d9f
commit
29e9d188b4
1 changed files with 11 additions and 0 deletions
|
@ -119,6 +119,17 @@ main(int argc, char *argv[])
|
|||
mifare_desfire_get_key_version (tags[i], 0, &version);
|
||||
printf ("Master Key version: %d (0x%02x)\n", version, version);
|
||||
|
||||
uint32_t size;
|
||||
res = mifare_desfire_free_mem (tags[i], &size);
|
||||
printf ("Free memory: ");
|
||||
if (0 == res) {
|
||||
printf ("%d bytes\n", size);
|
||||
} else {
|
||||
printf ("unknown\n");
|
||||
}
|
||||
|
||||
printf ("Use random UID: %s\n", (strlen (tag_uid) / 2 == 4) ? "yes" : "no");
|
||||
|
||||
free (tag_uid);
|
||||
|
||||
mifare_desfire_disconnect (tags[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue