memset(uid_ptr,0,10);
}
+ // reset the PCB block number
+ iso14_pcb_blocknum = 0;
+
// check for proprietary anticollision:
if ((resp[0] & 0x1F) == 0) return 3;
p_hi14a_card->ats_len = len;
}
- // reset the PCB block number
- iso14_pcb_blocknum = 0;
-
// set default timeout based on ATS
iso14a_set_ATS_timeout(resp);
-
return 1;
}
BigBuf_free(); BigBuf_Clear_ext(false);
clear_trace();
- set_tracing(TRUE);
+ set_tracing(FALSE);
iso14443a_setup(FPGA_HF_ISO14443A_READER_MOD);
sync_time = GetCountSspClk() & 0xfffffff8;
sync_cycles = PRNG_SEQUENCE_LENGTH; // Mifare Classic's random generator repeats every 2^16 cycles (and so do the nonces).
nt_attacked = 0;
- if (MF_DBGLEVEL >= 4) Dbprintf("Mifare::Sync %08x", sync_time);
+ if (MF_DBGLEVEL >= 4) Dbprintf("Mifare::Sync %u", sync_time);
if (first_try) {
mf_nr_ar3 = 0;