From b7a11d3b34aebfc77addfcd2ef7803c38d4e1dcc Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 14 Mar 2008 09:29:43 +0000 Subject: Better Output git-svn-id: https://svn.openpcd.org:2342/trunk@453 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_sniffer.c | 2 +- openpicc/application/ssc.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openpicc/application/iso14443_sniffer.c b/openpicc/application/iso14443_sniffer.c index 6d4a451..d07708a 100644 --- a/openpicc/application/iso14443_sniffer.c +++ b/openpicc/application/iso14443_sniffer.c @@ -67,7 +67,7 @@ void iso14443_sniffer (void *pvParameters) while(true) { res = iso14443_receive(NULL, &rx_frame, 20000 * portTICK_RATE_MS); if(res >= 0) { - DumpStringToUSB("\n\r"); + //DumpStringToUSB("\n\r"); DumpTimeToUSB(xTaskGetTickCount()); usb_print_string(": Frame received, consists of "); diff --git a/openpicc/application/ssc.c b/openpicc/application/ssc.c index 4da45ae..9f30400 100644 --- a/openpicc/application/ssc.c +++ b/openpicc/application/ssc.c @@ -43,6 +43,7 @@ #include "cmd.h" #define PRINT_DEBUG 0 +#define DEBUG_DATA_GATING 0 struct _ssc_handle { enum ssc_mode mode; @@ -370,10 +371,10 @@ void ssc_set_gate(int data_enabled) { if(OPENPICC->features.data_gating) { if(data_enabled) { AT91F_PIO_SetOutput(AT91C_BASE_PIOA, OPENPICC->DATA_GATE); - usb_print_string_f("(", 0); + if(DEBUG_DATA_GATING) usb_print_string_f("(", 0); } else { AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPICC->DATA_GATE); - usb_print_string_f(")", 0); + if(DEBUG_DATA_GATING) usb_print_string_f(")", 0); } } } -- cgit v1.2.3