Add LCD check to stdout_print_strn

This commit is contained in:
mux 2014-01-27 18:53:16 +02:00
parent bd61a6cee8
commit 8d3b0a9f74
1 changed files with 3 additions and 0 deletions

View File

@ -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
}
}