summaryrefslogtreecommitdiff
path: root/shared/runtime/sys_stdio_mphal.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared/runtime/sys_stdio_mphal.c')
-rw-r--r--shared/runtime/sys_stdio_mphal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared/runtime/sys_stdio_mphal.c b/shared/runtime/sys_stdio_mphal.c
index 84ce5828e..b7a35a5cb 100644
--- a/shared/runtime/sys_stdio_mphal.c
+++ b/shared/runtime/sys_stdio_mphal.c
@@ -142,8 +142,7 @@ STATIC mp_uint_t stdio_buffer_read(mp_obj_t self_in, void *buf, mp_uint_t size,
}
STATIC mp_uint_t stdio_buffer_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) {
- mp_hal_stdout_tx_strn(buf, size);
- return size;
+ return mp_hal_stdout_tx_strn(buf, size);
}
STATIC const mp_stream_p_t stdio_buffer_obj_stream_p = {