diff options
author | Dave Hylands <dhylands@gmail.com> | 2016-10-04 22:10:44 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-06 11:47:45 +1100 |
commit | c08f50bcf7740885863224509d56229d55ac1193 (patch) | |
tree | c2d116d618e8cd0d64796819a87ede193ca4fa4a /stmhal/modnetwork.c | |
parent | 7f19b1c3eb488a8466fd1fca0530dba6a02d9f1a (diff) | |
download | micropython-c08f50bcf7740885863224509d56229d55ac1193.tar.gz micropython-c08f50bcf7740885863224509d56229d55ac1193.zip |
stmhal: Disable network and usocket for ESPRUINO_PICO
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 |