diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-20 13:57:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-20 13:57:43 +0100 |
commit | 951ed9d02ffc826c68ee3af26c3530477e7e6156 (patch) | |
tree | eb70f46b030031c8601d71d575e36771cf6c5564 /stmhal/readline.c | |
parent | 1163cb9cb5e48153d1a6d723e8577d8ec3821692 (diff) | |
download | micropython-951ed9d02ffc826c68ee3af26c3530477e7e6156.tar.gz micropython-951ed9d02ffc826c68ee3af26c3530477e7e6156.zip |
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/readline.c')
-rw-r--r-- | stmhal/readline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/readline.c b/stmhal/readline.c index 0703dcf4ea..14c9b9fb96 100644 --- a/stmhal/readline.c +++ b/stmhal/readline.c @@ -34,9 +34,10 @@ #include "misc.h" #include "obj.h" #include MICROPY_HAL_H -#include "pybstdio.h" #include "readline.h" #include "usb.h" +#include "uart.h" +#include "pybstdio.h" #if 0 // print debugging info #define DEBUG_PRINT (1) |