summaryrefslogtreecommitdiff
path: root/openpicc/application
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 09:29:43 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 09:29:43 +0000
commitb7a11d3b34aebfc77addfcd2ef7803c38d4e1dcc (patch)
treedc0c86aef5439c1edd2f47c8482ee505955507b9 /openpicc/application
parente2e37bea66206adefbb2fc97fcbfb71c1a3cfbe7 (diff)
Better Output
git-svn-id: https://svn.openpcd.org:2342/trunk@453 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application')
-rw-r--r--openpicc/application/iso14443_sniffer.c2
-rw-r--r--openpicc/application/ssc.c5
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);
}
}
}
personal git repositories of Harald Welte. Your mileage may vary