continue;\r
}\r
\r
- // send a dummy byte as reader response in order to trigger the cards authentication timeout\r
- uint8_t dummy_answer = 0;\r
- ReaderTransmit(&dummy_answer, 1, NULL);\r
- timeout = GetCountSspClk() + AUTHENTICATION_TIMEOUT;\r
+ // send a dummy response in order to trigger the cards authentication failure timeout\r
+ uint8_t dummy_answer[8] = {0};\r
+ ReaderTransmit(dummy_answer, 8, NULL);\r
\r
num_nonces++;\r
if (num_nonces % 2) {\r
i += 9;\r
}\r
\r
- // wait for the card to become ready again\r
- while(GetCountSspClk() < timeout);\r
-\r
}\r
\r
LED_C_OFF();\r
LED_A_ON();\r
LED_B_OFF();\r
LED_C_OFF();\r
-// FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);\r
-// SpinDelay(100);\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r