From f5ea14a85f5ac0a8ee4166a7226d252c6a66b9ad Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 29 Apr 2016 17:06:21 +0200 Subject: [PATCH] fix bugs in debug --- Makefile.include | 2 +- firmware/debug.c | 2 +- firmware/messages.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.include b/Makefile.include index 5e48ba04f6..f931984328 100644 --- a/Makefile.include +++ b/Makefile.include @@ -14,7 +14,7 @@ DBGFLAGS ?= -g -DNDEBUG CFLAGS += $(OPTFLAGS) \ $(DBGFLAGS) \ - -std=c99 \ + -std=gnu99 \ -W \ -Wall \ -Wextra \ diff --git a/firmware/debug.c b/firmware/debug.c index 0149b4d507..3bb5dcfec9 100644 --- a/firmware/debug.c +++ b/firmware/debug.c @@ -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]); } } diff --git a/firmware/messages.c b/firmware/messages.c index 50d37da97e..9d50729179 100644 --- a/firmware/messages.c +++ b/firmware/messages.c @@ -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) {