X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2abdfa491ccf46320cd813764ca8ca49073388ed..8e4a0b3585ae9d62acfde915e25dbcd90b56397a:/armsrc/mifareutil.c diff --git a/armsrc/mifareutil.c b/armsrc/mifareutil.c index bae4761d..ca2cbeb7 100644 --- a/armsrc/mifareutil.c +++ b/armsrc/mifareutil.c @@ -179,7 +179,7 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN } // Skip 32 bits in pseudo random generator - nt = prng_successor(nt,32); + nt = prng_successor(nt, 32); // ar+parity for (pos = 4; pos < 8; pos++) { @@ -470,13 +470,8 @@ int mifare_ultra_writeblock(uint8_t blockNo, uint8_t *blockData) { return 0; } int mifare_classic_halt_ex(struct Crypto1State *pcs) { - uint16_t len = 0; uint8_t receivedAnswer[4] = {0x00, 0x00, 0x00, 0x00}; - len = mifare_sendcmd_short(pcs, (pcs == NULL) ? CRYPT_NONE : CRYPT_ALL, 0x50, 0x00, receivedAnswer, NULL, NULL); - if (len != 0) { - if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("halt error. response len: %x", len); - return 1; - } + mifare_sendcmd_short(pcs, (pcs == NULL) ? CRYPT_NONE : CRYPT_ALL, 0x50, 0x00, receivedAnswer, NULL, NULL); return 0; } int mifare_classic_halt(struct Crypto1State *pcs, uint32_t uid) {