summaryrefslogtreecommitdiff
path: root/stmhal/usb.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/usb.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/usb.c')
-rw-r--r--stmhal/usb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c
index 50848f455..85dd2b4ea 100644
--- a/stmhal/usb.c
+++ b/stmhal/usb.c
@@ -107,10 +107,6 @@ char usb_vcp_rx_get(void) {
return USBD_CDC_RxGet();
}
-void usb_vcp_send_str(const char *str) {
- usb_vcp_send_strn(str, strlen(str));
-}
-
void usb_vcp_send_strn(const char *str, int len) {
#ifdef USE_DEVICE_MODE
if (dev_is_enabled) {