summaryrefslogtreecommitdiff
path: root/openpicc/application
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-04 23:52:46 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-04 23:52:46 +0000
commit78a0c8a542e84e6dbe6e346058869f5f3aa36c1f (patch)
tree44d38978118e0aad958a420a538ba9c58afe0e00 /openpicc/application
parent8ee27fd95f318b832630fa8e0b098e6ed176e6fe (diff)
anticol working more often now
git-svn-id: https://svn.openpcd.org:2342/trunk@440 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application')
-rw-r--r--openpicc/application/iso14443_layer2a.c6
-rw-r--r--openpicc/application/iso14443a_pretender.c1
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;
personal git repositories of Harald Welte. Your mileage may vary