diff --git a/client/mifarehost.c b/client/mifarehost.c index 960ebe7d..808955f6 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -871,8 +871,11 @@ int mfTraceDecode(uint8_t *data_src, int len, uint8_t parity, bool wantSaveToEml bool check = false; check = oddparity8(nt1 >> 8 & 0xff) ^ (nt1 & 0x01) ^ ((nt_enc_par >> 5) & 0x01) ^ (nt_enc & 0x01); - if (check) - printf("check1 error\n"); + if (check) printf("check1 error\n"); + check = oddparity8(nt1 >> 16 & 0xff) ^ (nt1 >> 8 & 0x01) ^ ((nt_enc_par >> 6) & 0x01) ^ (nt_enc >> 8 & 0x01); + if (check) printf("check2 error\n"); + check = oddparity8(nt1 >> 24 & 0xff) ^ (nt1 >> 16 & 0x01) ^ ((nt_enc_par >> 7) & 0x01) ^ (nt_enc >> 16 & 0x01); + if (check) printf("check3 error\n");