Fix stupid mistake. I should learn to test before I commit
This commit is contained in:
parent
269b61e128
commit
f4cfd01b6b
@ -684,7 +684,7 @@ int main(int argc, char *const argv[])
|
|||||||
failure = false;
|
failure = false;
|
||||||
} else {
|
} else {
|
||||||
// Error, now try read() with B key
|
// Error, now try read() with B key
|
||||||
if (res != NFC_EMFCAUTHFAIL) {
|
if (res == NFC_EMFCAUTHFAIL) {
|
||||||
fprintf(stdout, "Failed reading with Key A after successfully testing Key A. This is unusual, but continuing anyway in case Key B succeeds...");
|
fprintf(stdout, "Failed reading with Key A after successfully testing Key A. This is unusual, but continuing anyway in case Key B succeeds...");
|
||||||
} else if (res != NFC_ERFTRANS) {
|
} else if (res != NFC_ERFTRANS) {
|
||||||
nfc_perror(r.pdi, "nfc_initiator_mifare_cmd");
|
nfc_perror(r.pdi, "nfc_initiator_mifare_cmd");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user