diff options
-rw-r--r-- | openpicc/application/iso14443_layer2a.c | 6 | ||||
-rw-r--r-- | openpicc/application/iso14443a_pretender.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/openpicc/application/iso14443_layer2a.c b/openpicc/application/iso14443_layer2a.c index dc4a23e..65ca91e 100644 --- a/openpicc/application/iso14443_layer2a.c +++ b/openpicc/application/iso14443_layer2a.c @@ -48,6 +48,7 @@ #include "pio_irq.h" #include "usb_print.h" +#include "cmd.h" #define PRINT_DEBUG 0 @@ -208,6 +209,11 @@ static void iso14443_ssc_callback(ssc_callback_reason reason, void *data) tc_fdt_set(0xff00); tc_cdiv_set_divider(RX_DIVIDER); tc_cdiv_sync_reset(); +#if 1 + int old=usb_print_set_default_flush(0); + DumpStringToUSB("["); DumpUIntToUSB(reason); DumpStringToUSB("]"); + usb_print_set_default_flush(old); +#endif } } diff --git a/openpicc/application/iso14443a_pretender.c b/openpicc/application/iso14443a_pretender.c index afbebdb..9045f53 100644 --- a/openpicc/application/iso14443a_pretender.c +++ b/openpicc/application/iso14443a_pretender.c @@ -94,6 +94,7 @@ static void fast_receive_callback(ssc_dma_rx_buffer_t *buffer, u_int8_t in_irq) switch(buffer->len_transfers) { case 3: case 4: /* REQA (7 bits) */ //case 7: case 8: case 9: + case 11: tx_buffer = &ATQA_BUFFER; fdt = 1172; break; |