diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-02-17 23:24:11 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-02-17 23:24:11 -0500 |
| commit | ed49c02feb7e206e962bf8a40cd69771b83e25cf (patch) | |
| tree | 98b75891eb1956c222bdb1df48dbc31e7d9fbe74 /py/stream.h | |
| parent | c26de0136a0ad746bf0ace600a1a9d3ff428c4c6 (diff) | |
add timeout; finish up for PR
Diffstat (limited to 'py/stream.h')
| -rw-r--r-- | py/stream.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/stream.h b/py/stream.h index be6b23d40..c05dcfc50 100644 --- a/py/stream.h +++ b/py/stream.h @@ -72,7 +72,9 @@ typedef struct _mp_stream_p_t { mp_uint_t (*write)(mp_obj_t obj, const void *buf, mp_uint_t size, int *errcode); mp_uint_t (*ioctl)(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode); mp_uint_t is_text : 1; // default is bytes, set this for text stream - bool pyserial_compatibility: 1; // adjust API to match pyserial more closely + bool pyserial_readinto_compatibility: 1; // Disallow size parameter in readinto() + bool pyserial_read_compatibility: 1; // Disallow omitting read(size) size parameter + bool pyserial_dont_return_none_compatibility: 1; // Don't return None for read() or readinto() } mp_stream_p_t; MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mp_stream_read_obj); |
