mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07: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
|
# define PRE_AUTHENTICATION_LEADTIME 400 // some (non standard) cards need a pause after select before they are ready for first authentication
|
||||||
#endif
|
#endif
|
||||||
#ifndef CHK_TIMEOUT
|
#ifndef CHK_TIMEOUT
|
||||||
# define CHK_TIMEOUT() SpinDelayUs(AUTHENTICATION_TIMEOUT);
|
# define CHK_TIMEOUT() { \
|
||||||
|
ReaderTransmit(&dummy_answer, 1, NULL); \
|
||||||
|
SpinDelayUs(AUTHENTICATION_TIMEOUT); \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
static uint8_t dummy_anser = 0;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Select, Authenticate, Read a MIFARE tag.
|
// Select, Authenticate, Read a MIFARE tag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue