diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-04-20 17:17:39 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-05-18 20:49:12 +1000 |
| commit | bb794f05b7fef75696118ea1eb03a769a9fac40d (patch) | |
| tree | 385c0cde24eefeee13ea5ae2efbf0fcf7d5e9713 /extmod/modusocket.c | |
| parent | d8d3e6ae787718fffacde2eb22b7eb32fb759484 (diff) | |
extmod: Make port-included extmod modules use MP_REGISTER_MODULES.
_onewire, socket, and network were previously added by the port rather
than objmodule.c.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modusocket.c')
| -rw-r--r-- | extmod/modusocket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modusocket.c b/extmod/modusocket.c index bd11e70c1..c4bf6342a 100644 --- a/extmod/modusocket.c +++ b/extmod/modusocket.c @@ -588,4 +588,6 @@ const mp_obj_module_t mp_module_usocket = { .globals = (mp_obj_dict_t *)&mp_module_usocket_globals, }; +MP_REGISTER_MODULE(MP_QSTR_socket, mp_module_usocket, MICROPY_PY_NETWORK && MICROPY_PY_USOCKET && !MICROPY_PY_LWIP); + #endif // MICROPY_PY_NETWORK && MICROPY_PY_USOCKET && !MICROPY_PY_LWIP |
