moved includes, added clear_trace flag (it was there...) and fixed multiapdu iso14443 stream

This commit is contained in:
merlokk 2017-11-03 13:42:38 +02:00
commit eb6e8de45d
4 changed files with 39 additions and 23 deletions

View file

@ -1916,19 +1916,18 @@ void ReaderIso14443a(UsbCommand *c)
uint8_t par[MAX_PARITY_SIZE];
bool cantSELECT = false;
if(param & ISO14A_CONNECT) {
set_tracing(true);
if(param & ISO14A_CLEAR_TRACE) {
clear_trace();
}
set_tracing(true);
if(param & ISO14A_REQUEST_TRIGGER) {
iso14a_set_trigger(true);
}
if(param & ISO14A_CONNECT) {
LED_A_ON();
clear_trace();
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);
if(!(param & ISO14A_NO_SELECT)) {
iso14a_card_select_t *card = (iso14a_card_select_t*)buf;