mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 01:42:34 +00:00
fix bugs in debug
This commit is contained in:
parent
1f3369788a
commit
f5ea14a85f
@ -14,7 +14,7 @@ DBGFLAGS ?= -g -DNDEBUG
|
|||||||
|
|
||||||
CFLAGS += $(OPTFLAGS) \
|
CFLAGS += $(OPTFLAGS) \
|
||||||
$(DBGFLAGS) \
|
$(DBGFLAGS) \
|
||||||
-std=c99 \
|
-std=gnu99 \
|
||||||
-W \
|
-W \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
|
@ -35,7 +35,7 @@ void oledDebug(const char *line)
|
|||||||
oledClear();
|
oledClear();
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
if (lines[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]);
|
oledDrawString(8, i * 8, lines[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ static inline void msg_out_pad(void)
|
|||||||
|
|
||||||
#if DEBUG_LINK
|
#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;
|
if (msg_debug_out_cur == 0) return;
|
||||||
while (msg_debug_out_cur < 64) {
|
while (msg_debug_out_cur < 64) {
|
||||||
|
Loading…
Reference in New Issue
Block a user