mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-21 22:16:16 +00:00
nfc_abort_command() function returns now 0 on success and libnfc error code on failure and fix some warnings.
This commit is contained in:
@@ -577,7 +577,7 @@ main (int argc, const char *argv[])
|
||||
uint8_t fileUid[4];
|
||||
memcpy (fileUid, mtKeys.amb[0].mbm.abtUID, 4);
|
||||
// Compare if key dump UID is the same as the current tag UID, at least for the first 4 bytes
|
||||
if (memcmp (nt.nti.nai.abtUid, fileUid, 4) != 0) {
|
||||
if (memcmp (pbtUID, fileUid, 4) != 0) {
|
||||
printf ("Expected MIFARE Classic card with UID starting as: %02x%02x%02x%02x\n",
|
||||
fileUid[0], fileUid[1], fileUid[2], fileUid[3]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user