summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443a_pretender.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-18 18:40:35 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-18 18:40:35 +0000
commit68e2814776615ac8b24be5b342016363040fc4e1 (patch)
tree18f808bc11d7822e0200b7bea016ea4b870da61a /openpicc/application/iso14443a_pretender.c
parent714136e3343d44de5c092bda11a78323f08ce3f8 (diff)
Print error code in case of error
git-svn-id: https://svn.openpcd.org:2342/trunk@470 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443a_pretender.c')
-rw-r--r--openpicc/application/iso14443a_pretender.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpicc/application/iso14443a_pretender.c b/openpicc/application/iso14443a_pretender.c
index a344fdb..0ecaaac 100644
--- a/openpicc/application/iso14443a_pretender.c
+++ b/openpicc/application/iso14443a_pretender.c
@@ -300,7 +300,9 @@ prefill_failed:
do {
res = iso14443_layer2a_init(1);
if(res < 0) {
- usb_print_string("Pretender: Initialization failed\n\r");
+ usb_print_string("Pretender: Initialization failed: -");
+ DumpUIntToUSB(-res);
+ usb_print_string("\n\r");
for(i=0; i<=10000; i++) {
vLedSetBrightness(LED_RED, abs(1000-(i%2000)));
vTaskDelay(1*portTICK_RATE_MS);
personal git repositories of Harald Welte. Your mileage may vary