diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-18 18:40:35 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-18 18:40:35 +0000 |
commit | 68e2814776615ac8b24be5b342016363040fc4e1 (patch) | |
tree | 18f808bc11d7822e0200b7bea016ea4b870da61a | |
parent | 714136e3343d44de5c092bda11a78323f08ce3f8 (diff) |
Print error code in case of error
git-svn-id: https://svn.openpcd.org:2342/trunk@470 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r-- | openpicc/application/iso14443a_pretender.c | 4 |
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); |