aboutsummaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-01-01 14:19:26 +0200
committerPaul Sokolovsky2016-01-01 14:22:57 +0200
commit00ee84e1e139416e1069a87965065a8c66c8afa4 (patch)
tree50f60761e3ec0ba2fa3a117809fcc68c835613d3 /py/mpstate.h
parent9bbfd5efd49df9e4d6d2dddec71ad2572430f43f (diff)
py: Clean up instantiation of dupterm object.
To comply with already established scheme for extmod's.
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 012b0ef18..a990713f7 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -127,6 +127,11 @@ typedef struct _mp_state_vm_t {
MICROPY_PORT_ROOT_POINTERS
// root pointers for extmod
+
+ #if MICROPY_PY_OS_DUPTERM
+ mp_obj_t term_obj;
+ #endif
+
#if MICROPY_PY_LWIP_SLIP
mp_obj_t lwip_slip_stream;
#endif