mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-02 21:41:11 +08: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 "dbprint.h"
|
||||
#include "util.h"
|
||||
#include "util.h"
|
||||
#include "parity.h"
|
||||
#include "mifareutil.h"
|
||||
#include "commonutil.h"
|
||||
|
@ -1979,9 +1980,11 @@ int EmGetCmd(uint8_t *received, uint16_t *len, uint8_t *par) {
|
|||
for (;;) {
|
||||
WDT_HIT();
|
||||
|
||||
if (check == 2000) {
|
||||
if (BUTTON_PRESS())
|
||||
if (check == 1000) {
|
||||
if (BUTTON_PRESS() || data_available()) {
|
||||
Dbprintf("----------- " _GREEN_("BREAKING") " ----------");
|
||||
return 1;
|
||||
}
|
||||
check = 0;
|
||||
}
|
||||
++check;
|
||||
|
|
|
@ -535,8 +535,9 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1
|
|||
|
||||
WDT_HIT();
|
||||
|
||||
if (counter == 2000) {
|
||||
if (counter == 1000) {
|
||||
if (data_available()) {
|
||||
Dbprintf("----------- " _GREEN_("BREAKING") " ----------");
|
||||
break;
|
||||
}
|
||||
counter = 0;
|
||||
|
|
Loading…
Reference in a new issue