fix: 'hf mf hardnested' : without sending dummy answer, the can't select tag comes..
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user