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:
parent
1f3369788a
commit
f5ea14a85f
@ -14,7 +14,7 @@ DBGFLAGS ?= -g -DNDEBUG
|
||||
|
||||
CFLAGS += $(OPTFLAGS) \
|
||||
$(DBGFLAGS) \
|
||||
-std=c99 \
|
||||
-std=gnu99 \
|
||||
-W \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user