summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extmod/modlwip.c2
-rw-r--r--py/mpstate.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c
index bbfd3a225..25669228d 100644
--- a/extmod/modlwip.c
+++ b/extmod/modlwip.c
@@ -1783,4 +1783,6 @@ MP_REGISTER_MODULE(MP_QSTR_lwip, mp_module_lwip);
// On LWIP-ports, this is the usocket module (replaces extmod/modusocket.c).
MP_REGISTER_MODULE(MP_QSTR_usocket, mp_module_lwip);
+MP_REGISTER_ROOT_POINTER(mp_obj_t lwip_slip_stream);
+
#endif // MICROPY_PY_LWIP
diff --git a/py/mpstate.h b/py/mpstate.h
index 53bb882ce..7ad9d6b29 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -198,10 +198,6 @@ typedef struct _mp_state_vm_t {
// root pointers for extmod
- #if MICROPY_PY_LWIP_SLIP
- mp_obj_t lwip_slip_stream;
- #endif
-
#if MICROPY_VFS
struct _mp_vfs_mount_t *vfs_cur;
struct _mp_vfs_mount_t *vfs_mount_table;