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