diff options
| author | David Lechner <david@pybricks.com> | 2022-07-02 15:05:41 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-18 13:52:01 +1000 |
| commit | d532c55e3b8ee7955bea99fc79ccd74d9a35f757 (patch) | |
| tree | 1305945fdd9384994387dae380dc3d7b5842fdf7 /extmod/modlwip.c | |
| parent | 631b692177ef1e6ba2832ee224e2680ac9982dbf (diff) | |
extmod/modlwip: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register lwip_slip_stream
instead of using a conditional inside of mp_state_vm_t.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'extmod/modlwip.c')
| -rw-r--r-- | extmod/modlwip.c | 2 |
1 files changed, 2 insertions, 0 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 |
