summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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