From 30b7344eb0a96c9cf608bec55ea38dfcb39ddfaf Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 1 Jan 2016 16:41:26 +0200 Subject: extmod/moduos_dupterm: Make mp_uos_dupterm_tx_strn() function reusable. Function to actually spool output terminal data to dupterm object. --- unix/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unix/main.c') diff --git a/unix/main.c b/unix/main.c index c305c37283..9f787595d0 100644 --- a/unix/main.c +++ b/unix/main.c @@ -45,6 +45,7 @@ #include "py/gc.h" #include "py/stackctrl.h" #include "py/mphal.h" +#include "extmod/misc.h" #include "genhdr/mpversion.h" #include "input.h" @@ -61,7 +62,7 @@ long heap_size = 1024*1024 * (sizeof(mp_uint_t) / 4); STATIC void stderr_print_strn(void *env, const char *str, size_t len) { (void)env; ssize_t dummy = write(STDERR_FILENO, str, len); - mp_hal_dupterm_tx_strn(str, len); + mp_uos_dupterm_tx_strn(str, len); (void)dummy; } -- cgit v1.2.3