Fix stupid mistake. I should learn to test before I commit

This commit is contained in:
Polle Vanhoof 2020-08-03 20:45:37 +02:00
parent 269b61e128
commit f4cfd01b6b

View File

@ -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");