diff options
Diffstat (limited to 'openpicc/application/ssc.c')
-rw-r--r-- | openpicc/application/ssc.c | 5 |
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); } } } |