1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

Only compile debugInt when debugging

This commit is contained in:
Jochen Hoenicke 2016-04-29 16:35:23 +02:00
parent 117d261a38
commit 450a277f45

View File

@ -98,6 +98,7 @@ uint8_t buttonState(void)
return 0; return 0;
} }
#if DEBUG_LOG
char *debugInt(const uint32_t i) char *debugInt(const uint32_t i)
{ {
static uint8_t n = 0; static uint8_t n = 0;
@ -108,6 +109,9 @@ char *debugInt(const uint32_t i)
n = (n + 1) % 8; n = (n + 1) % 8;
return ret; return ret;
} }
#else
#define debugInt(I) do{}while(0)
#endif
static uint32_t dialog_timeout = 0; static uint32_t dialog_timeout = 0;