From: iceman1001 Date: Mon, 7 Nov 2016 21:42:57 +0000 (+0100) Subject: CHG: "hf mf hardnested" disabled the tracelogging on deviceside during nonce acquiring. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0b53530a100fb2fdcee2e292423e2dc7f501e026?hp=360caababff8eaed758d3d32864435185fd36eed CHG: "hf mf hardnested" disabled the tracelogging on deviceside during nonce acquiring. --- diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index 46478735..b933fc7b 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -644,9 +644,8 @@ void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags, if (initialize) { iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN); clear_trace(); - set_tracing(true); + set_tracing(FALSE); } - LED_C_ON(); uint16_t num_nonces = 0; @@ -708,7 +707,7 @@ void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags, memcpy(buf+i, receivedAnswer, 4); nt_par_enc = par_enc[0] & 0xf0; } else { - nt_par_enc |= par_enc[0] >> 4; + nt_par_enc |= par_enc[0] >> 4; memcpy(buf+i+4, receivedAnswer, 4); memcpy(buf+i+8, &nt_par_enc, 1); i += 9; @@ -718,9 +717,7 @@ void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags, } LED_C_OFF(); - - crypto1_destroy(pcs); - + crypto1_destroy(pcs); LED_B_ON(); cmd_send(CMD_ACK, isOK, cuid, num_nonces, buf, sizeof(buf)); LED_B_OFF(); @@ -730,7 +727,7 @@ void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags, if (field_off) { FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); LEDsoff(); - set_tracing(FALSE); + //set_tracing(FALSE); } }