extmod/uos_dupterm: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register dupterm_objs instead of using a conditional inside of mp_state_vm_t. Signed-off-by: David Lechner <david@pybricks.com>
This commit is contained in:
committed by
Damien George
parent
68f46342aa
commit
631b692177
@@ -198,10 +198,6 @@ typedef struct _mp_state_vm_t {
|
||||
|
||||
// root pointers for extmod
|
||||
|
||||
#if MICROPY_PY_OS_DUPTERM
|
||||
mp_obj_t dupterm_objs[MICROPY_PY_OS_DUPTERM];
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_LWIP_SLIP
|
||||
mp_obj_t lwip_slip_stream;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user