aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-13 02:08:02 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-13 02:08:02 +0200
commitc02d0868bcca3ab18aca64525376e2a8f46ee616 (patch)
treefd4bfeef16c09c3964f54ab31119c2ab66e8b0eb
parent166d78c97aa237a076b2f003dc51b535722d58c3 (diff)
downloaduGFX-c02d0868bcca3ab18aca64525376e2a8f46ee616.tar.gz
uGFX-c02d0868bcca3ab18aca64525376e2a8f46ee616.tar.bz2
uGFX-c02d0868bcca3ab18aca64525376e2a8f46ee616.zip
console update
-rw-r--r--include/console.h2
-rw-r--r--src/console.c4
2 files changed, 5 insertions, 1 deletions
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
+