From 450a277f4546261c2de488745c699d83ca3df325 Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Fri, 29 Apr 2016 16:35:23 +0200 Subject: [PATCH] Only compile debugInt when debugging --- firmware/u2f.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/u2f.c b/firmware/u2f.c index acf4a0ac64..ce3de07cec 100644 --- a/firmware/u2f.c +++ b/firmware/u2f.c @@ -98,6 +98,7 @@ uint8_t buttonState(void) return 0; } +#if DEBUG_LOG char *debugInt(const uint32_t i) { static uint8_t n = 0; @@ -108,6 +109,9 @@ char *debugInt(const uint32_t i) n = (n + 1) % 8; return ret; } +#else +#define debugInt(I) do{}while(0) +#endif static uint32_t dialog_timeout = 0;