1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

fix bugs in debug

This commit is contained in:
Pavol Rusnak 2016-04-29 17:06:21 +02:00
parent 1f3369788a
commit f5ea14a85f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ DBGFLAGS ?= -g -DNDEBUG
CFLAGS += $(OPTFLAGS) \
$(DBGFLAGS) \
-std=c99 \
-std=gnu99 \
-W \
-Wall \
-Wextra \

View File

@ -35,7 +35,7 @@ void oledDebug(const char *line)
oledClear();
for (i = 0; i < 8; i++) {
if (lines[i]) {
oledDrawChar(0, i * 8, '0' + (id + i) % 10);
oledDrawChar(0, i * 8, '0' + (id + i) % 10, 1);
oledDrawString(8, i * 8, lines[i]);
}
}

View File

@ -184,7 +184,7 @@ static inline void msg_out_pad(void)
#if DEBUG_LINK
inline void msg_debug_out_pad(void)
static inline void msg_debug_out_pad(void)
{
if (msg_debug_out_cur == 0) return;
while (msg_debug_out_cur < 64) {