mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
less field timeup before first transmit
This commit is contained in:
parent
8dd803cd6b
commit
8f2b9b9d66
1 changed files with 7 additions and 1 deletions
|
@ -1431,13 +1431,14 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
|
|
||||||
// init as reader
|
// init as reader
|
||||||
lf_init(true, false);
|
lf_init(true, false);
|
||||||
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
|
|
||||||
uint8_t tag_modulation;
|
uint8_t tag_modulation;
|
||||||
size_t max_nrzs = (8 * HITAG_FRAME_LEN + 5) * 2; // up to 2 nrzs per bit
|
size_t max_nrzs = (8 * HITAG_FRAME_LEN + 5) * 2; // up to 2 nrzs per bit
|
||||||
uint8_t nrz_samples[max_nrzs];
|
uint8_t nrz_samples[max_nrzs];
|
||||||
|
bool turn_on = true;
|
||||||
size_t nrzs = 0;
|
size_t nrzs = 0;
|
||||||
int16_t checked = 0;
|
int16_t checked = 0;
|
||||||
|
|
||||||
uint32_t signal_size = 10000;
|
uint32_t signal_size = 10000;
|
||||||
|
|
||||||
while (bStop == false && BUTTON_PRESS() == false) {
|
while (bStop == false && BUTTON_PRESS() == false) {
|
||||||
|
@ -1499,6 +1500,11 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (turn_on) {
|
||||||
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD);
|
||||||
|
turn_on = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Wait for t_wait_2 carrier periods after the last tag bit before transmitting,
|
// Wait for t_wait_2 carrier periods after the last tag bit before transmitting,
|
||||||
lf_wait_periods(t_wait_2);
|
lf_wait_periods(t_wait_2);
|
||||||
command_start += t_wait_2;
|
command_start += t_wait_2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue