From 61f527498f6c6705792c39f0b38d6c8794d7b39e Mon Sep 17 00:00:00 2001 From: trsaunders Date: Mon, 13 Aug 2012 21:46:58 +0100 Subject: [PATCH] only enable console code if driver support is available --- src/console.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/console.c b/src/console.c index 55bc3312..e5f2371c 100644 --- a/src/console.c +++ b/src/console.c @@ -25,6 +25,8 @@ #include "gdisp_fonts.h" #include "console.h" +#if defined(GDISP_NEED_SCROLL) + /* * Interface implementation. The interface is write only */ @@ -168,3 +170,6 @@ msg_t lcdConsoleWrite(GLCDConsole *console, char *bp, size_t n) { return RDY_OK; } + + +#endif /* GDISP_NEED_SCROLL */