Fix error byte index

This commit is contained in:
Ryan Saridar 2021-03-31 02:42:03 +01:00 committed by GitHub
parent 3329e363e0
commit 2f0b944554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ int MifareAuth4(mf4Session_t *mf4session, uint8_t *keyn, uint8_t *key, bool acti
}
if (data[0] != 0x90) {
if (!silentMode) PrintAndLogEx(ERR, "Card response error: %02x", data[2]);
if (!silentMode) PrintAndLogEx(ERR, "Card response error: %02x", data[0]);
if (dropFieldIfError) DropField();
return 3;
}