hf 14a: if the tag supports it, set default timeout according to ATS

hf epa: remove explicit but arbitrary timeout settings
Bugfix: don't timeout when frame transmission has already started
This commit is contained in:
pwpiwi 2015-02-11 18:30:36 +01:00
commit 19a700a8b5
4 changed files with 41 additions and 23 deletions

View file

@ -257,9 +257,6 @@ void EPA_PACE_Collect_Nonce(UsbCommand *c)
return;
}
// increase the timeout (at least some cards really do need this!)
iso14a_set_timeout(0x0002FFFF);
// read the CardAccess file
// this array will hold the CardAccess file
uint8_t card_access[256] = {0};
@ -426,8 +423,6 @@ int EPA_Setup()
// power up the field
iso14443a_setup(FPGA_HF_ISO14443A_READER_MOD);
iso14a_set_timeout(10500);
// select the card
return_code = iso14443a_select_card(uid, &card_select_info, NULL);
if (return_code != 1) {