aboutsummaryrefslogtreecommitdiff
path: root/stmhal/printf.c
diff options
context:
space:
mode:
authorDamien George2014-06-15 00:41:47 +0100
committerDamien George2014-06-15 00:41:47 +0100
commit34ab8dd6dde058aeeff721eb066dad36858d8f4b (patch)
tree7d4393568b5fdaedbb732d4ce39471ec28759d92 /stmhal/printf.c
parent0294661da5b68cd428362fb81513d11471e6a24a (diff)
stmhal: Update and improve LCD driver.
Still some method names to iron out, and funtionality to add, but this will do for the first, basic version.
Diffstat (limited to 'stmhal/printf.c')
-rw-r--r--stmhal/printf.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c
index 6cfeda263..e95f23aba 100644
--- a/stmhal/printf.c
+++ b/stmhal/printf.c
@@ -196,23 +196,13 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) {
}
void stdout_print_strn(void *data, const char *str, unsigned int len) {
- // send stdout to UART, USB CDC VCP, and LCD if nothing else
- bool any = false;
-
+ // TODO this needs to be replaced with a proper stdio interface ala CPython
+ // send stdout to UART and USB CDC VCP
if (pyb_uart_global_debug != PYB_UART_NONE) {
uart_tx_strn_cooked(pyb_uart_global_debug, str, len);
- any = true;
}
if (usb_vcp_is_enabled()) {
usb_vcp_send_strn_cooked(str, len);
- any = true;
- }
- if (!any) {
-#if 0
-#if MICROPY_HW_HAS_LCD
- lcd_print_strn(str, len);
-#endif
-#endif
}
}