summaryrefslogtreecommitdiffstatshomepage
path: root/stm/printf.c
diff options
context:
space:
mode:
authormux <freelancer.c@gmail.com>2014-01-27 18:53:16 +0200
committermux <freelancer.c@gmail.com>2014-01-27 18:53:16 +0200
commit8d3b0a9f74c39f5876b74a5829bddf0c0588276b (patch)
treea8f650b07394a87fc140f7d6ebcc053bdb4db437 /stm/printf.c
parentbd61a6cee8f348b0c4fcc21031b0eceba7dc0cb9 (diff)
downloadmicropython-8d3b0a9f74c39f5876b74a5829bddf0c0588276b.tar.gz
micropython-8d3b0a9f74c39f5876b74a5829bddf0c0588276b.zip
Add LCD check to stdout_print_strn
Diffstat (limited to 'stm/printf.c')
-rw-r--r--stm/printf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stm/printf.c b/stm/printf.c
index 82b168d1c4..2669a55344 100644
--- a/stm/printf.c
+++ b/stm/printf.c
@@ -6,6 +6,7 @@
#include "misc.h"
#include "systick.h"
#include "mpconfig.h"
+#include "mpconfigport.h"
#include "qstr.h"
#include "obj.h"
#include "lcd.h"
@@ -247,7 +248,9 @@ void stdout_print_strn(void *data, const char *str, unsigned int len) {
any = true;
}
if (!any) {
+#if MICROPY_HW_HAS_LCD
lcd_print_strn(str, len);
+#endif
}
}