mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
hf 14a sim - less button checks and even less dataavailable checks
This commit is contained in:
parent
4c7c3643f3
commit
1ce9053c51
1 changed files with 4 additions and 3 deletions
|
@ -920,18 +920,19 @@ bool GetIso14443aCommandFromReader(uint8_t *received, uint8_t *par, int *len) {
|
|||
uint16_t checker = 0;
|
||||
for (;;) {
|
||||
WDT_HIT();
|
||||
if (flip) {
|
||||
if (flip == 2) {
|
||||
if (data_available())
|
||||
return false;
|
||||
|
||||
checker = 0;
|
||||
flip = 0;
|
||||
}
|
||||
|
||||
if (checker >= 4000) {
|
||||
if (BUTTON_PRESS())
|
||||
return false;
|
||||
flip = 1;
|
||||
|
||||
flip++;
|
||||
checker = 0;
|
||||
}
|
||||
++checker;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue