diff options
Diffstat (limited to 'stmhal/modnetwork.c')
-rw-r--r-- | stmhal/modnetwork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/modnetwork.c b/stmhal/modnetwork.c index 1ea224cbfc..c15bfc7b24 100644 --- a/stmhal/modnetwork.c +++ b/stmhal/modnetwork.c @@ -33,6 +33,8 @@ #include "py/runtime.h" #include "modnetwork.h" +#if MICROPY_PY_NETWORK + /// \module network - network configuration /// /// This module provides network drivers and routing configuration. @@ -88,3 +90,5 @@ const mp_obj_module_t mp_module_network = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t*)&mp_module_network_globals, }; + +#endif // MICROPY_PY_NETWORK |