From c02d0868bcca3ab18aca64525376e2a8f46ee616 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 13 Oct 2012 02:08:02 +0200 Subject: [PATCH] console update --- include/console.h | 2 +- src/console.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/console.h b/include/console.h index d154d9d0..0cb62cdd 100644 --- a/include/console.h +++ b/include/console.h @@ -22,7 +22,7 @@ #define CONSOLE_H #ifndef GDISP_NEED_CONSOLE - #define GDISP_NEED_CONSOLE FALSE + #undef GDISP_NEED_CONSOLE #endif #if GDISP_NEED_CONSOLE diff --git a/src/console.c b/src/console.c index b13f27f6..e4d2e6ab 100644 --- a/src/console.c +++ b/src/console.c @@ -22,6 +22,8 @@ #include "hal.h" #include "console.h" +#if GDISP_NEED_CONSOLE + /** * @extends BaseAsynchronousChannelVMT * @@ -185,3 +187,5 @@ msg_t lcdConsoleWrite(GConsole *console, const uint8_t *bp, size_t n) { return RDY_OK; } +#endif +