From 80db2cec99ca5c995a0302b1d6d00ad77cfcd736 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 3 Dec 2018 11:00:35 -0500 Subject: UART changes: timeout in secs, write bytes, etc. --- py/stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'py/stream.h') diff --git a/py/stream.h b/py/stream.h index 7b953138c..bcba4f234 100644 --- a/py/stream.h +++ b/py/stream.h @@ -70,6 +70,7 @@ 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 } mp_stream_p_t; MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mp_stream_read_obj); -- cgit v1.2.3