Merge 9ba2686acec0d261dad168dc62aded502e81c6b0 into ba072f16f6b2a655d51da2171ecfb83e26c0ef58

This commit is contained in:
Polle Vanhoof 2020-08-05 08:30:31 +09:00 committed by GitHub
commit ec0e921dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -684,7 +684,9 @@ int main(int argc, char *const argv[])
failure = false;
} else {
// Error, now try read() with B key
if (res != NFC_ERFTRANS) {
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...\n");
} else if (res != NFC_ERFTRANS) {
nfc_perror(r.pdi, "nfc_initiator_mifare_cmd");
goto error;
}