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 +