mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
fix: 'hf mf hardnested' : without sending dummy answer, the can't select tag comes..
This commit is contained in:
parent
6b78a8711d
commit
deeb56f09c
1 changed files with 5 additions and 1 deletions
|
@ -23,8 +23,12 @@
|
|||
# define PRE_AUTHENTICATION_LEADTIME 400 // some (non standard) cards need a pause after select before they are ready for first authentication
|
||||
#endif
|
||||
#ifndef CHK_TIMEOUT
|
||||
# define CHK_TIMEOUT() SpinDelayUs(AUTHENTICATION_TIMEOUT);
|
||||
# define CHK_TIMEOUT() { \
|
||||
ReaderTransmit(&dummy_answer, 1, NULL); \
|
||||
SpinDelayUs(AUTHENTICATION_TIMEOUT); \
|
||||
}
|
||||
#endif
|
||||
static uint8_t dummy_anser = 0;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Select, Authenticate, Read a MIFARE tag.
|
||||
|
|
Loading…
Add table
Reference in a new issue