summaryrefslogtreecommitdiff
path: root/stmhal/pyexec.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-07-20 13:57:43 +0100
committerDamien George <damien.p.george@gmail.com>2014-07-20 13:57:43 +0100
commit951ed9d02ffc826c68ee3af26c3530477e7e6156 (patch)
treeeb70f46b030031c8601d71d575e36771cf6c5564 /stmhal/pyexec.c
parent1163cb9cb5e48153d1a6d723e8577d8ec3821692 (diff)
stmhal: Fix REPL printing by cooking output sent to stdout_obj.
Recent changes to builtin print meant that print was printing to the mp_sys_stdout_obj, which was sending data raw to the USB CDC device. The data should be cooked so that \n turns into \r\n.
Diffstat (limited to 'stmhal/pyexec.c')
-rw-r--r--stmhal/pyexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index 93f4d62a9..cac6f0cf0 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -44,10 +44,11 @@
#include "gccollect.h"
#include MICROPY_HAL_H
#include "systick.h"
-#include "pybstdio.h"
#include "readline.h"
#include "pyexec.h"
#include "usb.h"
+#include "uart.h"
+#include "pybstdio.h"
#include "genhdr/py-version.h"
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;