mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 04:50:12 -07:00
hf mf sim - minor short times...
This commit is contained in:
parent
9b2fd29149
commit
93bdc9f75b
2 changed files with 7 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include "ticks.h"
|
#include "ticks.h"
|
||||||
#include "dbprint.h"
|
#include "dbprint.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "util.h"
|
||||||
#include "parity.h"
|
#include "parity.h"
|
||||||
#include "mifareutil.h"
|
#include "mifareutil.h"
|
||||||
#include "commonutil.h"
|
#include "commonutil.h"
|
||||||
|
@ -1979,9 +1980,11 @@ int EmGetCmd(uint8_t *received, uint16_t *len, uint8_t *par) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
|
||||||
if (check == 2000) {
|
if (check == 1000) {
|
||||||
if (BUTTON_PRESS())
|
if (BUTTON_PRESS() || data_available()) {
|
||||||
|
Dbprintf("----------- " _GREEN_("BREAKING") " ----------");
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
check = 0;
|
check = 0;
|
||||||
}
|
}
|
||||||
++check;
|
++check;
|
||||||
|
|
|
@ -535,8 +535,9 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1
|
||||||
|
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
|
||||||
if (counter == 2000) {
|
if (counter == 1000) {
|
||||||
if (data_available()) {
|
if (data_available()) {
|
||||||
|
Dbprintf("----------- " _GREEN_("BREAKING") " ----------");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
counter = 0;
|
counter = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue