fix bugs in debug

pull/25/head
Pavol Rusnak 8 years ago
parent 1f3369788a
commit f5ea14a85f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save