diff options
Diffstat (limited to 'stmhal/modusocket.c')
-rw-r--r-- | stmhal/modusocket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c index 36f149c450..30536bc156 100644 --- a/stmhal/modusocket.c +++ b/stmhal/modusocket.c @@ -35,6 +35,8 @@ #include "netutils.h" #include "modnetwork.h" +#if MICROPY_PY_USOCKET + /******************************************************************************/ // socket class @@ -446,3 +448,5 @@ const mp_obj_module_t mp_module_usocket = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t*)&mp_module_usocket_globals, }; + +#endif // MICROPY_PY_USOCKET |