mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -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;
|
uint16_t checker = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
if (flip) {
|
if (flip == 2) {
|
||||||
if (data_available())
|
if (data_available())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
checker = 0;
|
|
||||||
flip = 0;
|
flip = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checker >= 4000) {
|
if (checker >= 4000) {
|
||||||
if (BUTTON_PRESS())
|
if (BUTTON_PRESS())
|
||||||
return false;
|
return false;
|
||||||
flip = 1;
|
|
||||||
|
flip++;
|
||||||
|
checker = 0;
|
||||||
}
|
}
|
||||||
++checker;
|
++checker;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue