summaryrefslogtreecommitdiff
path: root/openpicc/application/ssc.c
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/ssc.c
parente2e37bea66206adefbb2fc97fcbfb71c1a3cfbe7 (diff)
Better Output
git-svn-id: https://svn.openpcd.org:2342/trunk@453 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc.c')
-rw-r--r--openpicc/application/ssc.c5
1 files changed, 3 insertions, 2 deletions
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