diff options
| author | hierophect <hierophect@gmail.com> | 2019-12-10 15:38:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-10 15:38:42 -0500 |
| commit | 30aba4673597f840f6fccd6750ef93193dc77e78 (patch) | |
| tree | cfdeb2ec0eb83f16abc7efe10fd6ec83d5d11b71 /lib | |
| parent | 33233934e9be4fee31b6b8412234279ebb7d9ef3 (diff) | |
| parent | 387ab6c87eac8481934a7ffc4a96395fe5f34747 (diff) | |
Merge branch 'master' into stm32-blackpill
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils/sys_stdio_mphal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/sys_stdio_mphal.c b/lib/utils/sys_stdio_mphal.c index 266783f37..c1607dfe8 100644 --- a/lib/utils/sys_stdio_mphal.c +++ b/lib/utils/sys_stdio_mphal.c @@ -123,6 +123,7 @@ STATIC const mp_rom_map_elem_t stdio_locals_dict_table[] = { STATIC MP_DEFINE_CONST_DICT(stdio_locals_dict, stdio_locals_dict_table); STATIC const mp_stream_p_t stdio_obj_stream_p = { + MP_PROTO_IMPLEMENT(MP_QSTR_protocol_stream) .read = stdio_read, .write = stdio_write, .ioctl = stdio_ioctl, @@ -158,6 +159,7 @@ STATIC mp_uint_t stdio_buffer_write(mp_obj_t self_in, const void *buf, mp_uint_t } STATIC const mp_stream_p_t stdio_buffer_obj_stream_p = { + MP_PROTO_IMPLEMENT(MP_QSTR_protocol_stream) .read = stdio_buffer_read, .write = stdio_buffer_write, .is_text = false, |
