From 25c8aaf41151e6c69b95abfaf25e85befa96716d Mon Sep 17 00:00:00 2001 From: merlokk Date: Fri, 2 Feb 2018 22:41:47 +0200 Subject: [PATCH] added next nt checks --- client/mifarehost.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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");