From 68e2814776615ac8b24be5b342016363040fc4e1 Mon Sep 17 00:00:00 2001 From: henryk Date: Tue, 18 Mar 2008 18:40:35 +0000 Subject: Print error code in case of error git-svn-id: https://svn.openpcd.org:2342/trunk@470 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443a_pretender.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openpicc') 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); -- cgit v1.2.3