mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
ht2: avoid sending spurious command after command is finished
This commit is contained in:
parent
59976aa588
commit
426c08e221
1 changed files with 2 additions and 1 deletions
|
@ -1490,6 +1490,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
}
|
}
|
||||||
case RHT2F_UID_ONLY: {
|
case RHT2F_UID_ONLY: {
|
||||||
bStop = !hitag2_read_uid(rx, rxlen, tx, &txlen);
|
bStop = !hitag2_read_uid(rx, rxlen, tx, &txlen);
|
||||||
|
if (bSuccessful) bStop = true;
|
||||||
attempt_count++; //attempt 3 times to get uid then quit
|
attempt_count++; //attempt 3 times to get uid then quit
|
||||||
if (!bStop && attempt_count == 3)
|
if (!bStop && attempt_count == 3)
|
||||||
bStop = true;
|
bStop = true;
|
||||||
|
@ -1501,7 +1502,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (bStop) break;
|
||||||
if (turn_on) {
|
if (turn_on) {
|
||||||
// Wait 50ms with field off to be sure the transponder gets reset
|
// Wait 50ms with field off to be sure the transponder gets reset
|
||||||
SpinDelay(50);
|
SpinDelay(50);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue