diff --git a/extmod/modlwip.c b/extmod/modlwip.c index e20ade139b..47d5bcdbb9 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -1781,6 +1781,6 @@ const mp_obj_module_t mp_module_lwip = { MP_REGISTER_MODULE(MP_QSTR_lwip, mp_module_lwip, MICROPY_PY_LWIP); // On LWIP-ports, this is the usocket module (replaces extmod/modusocket.c). -MP_REGISTER_MODULE(MP_QSTR_socket, mp_module_lwip, MICROPY_PY_LWIP); +MP_REGISTER_MODULE(MP_QSTR_usocket, mp_module_lwip, MICROPY_PY_LWIP); #endif // MICROPY_PY_LWIP diff --git a/extmod/modusocket.c b/extmod/modusocket.c index c4bf6342a4..5f07d4f789 100644 --- a/extmod/modusocket.c +++ b/extmod/modusocket.c @@ -588,6 +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); +MP_REGISTER_MODULE(MP_QSTR_usocket, mp_module_usocket, MICROPY_PY_NETWORK && MICROPY_PY_USOCKET && !MICROPY_PY_LWIP); #endif // MICROPY_PY_NETWORK && MICROPY_PY_USOCKET && !MICROPY_PY_LWIP