diff options
| author | David Lechner <david@pybricks.com> | 2022-07-01 15:01:38 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-18 13:50:25 +1000 |
| commit | a3703584fea25854616265c9accc2aab70cf2c97 (patch) | |
| tree | 91ab182a3920ddbb970b105f7ba248ba56b10d6f /extmod/modnetwork.c | |
| parent | e531b72b56cfac9a309f79cd242070d675d6ee0e (diff) | |
extmod/modnetwork: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register mod_network_nic_list and
removes the same from all mpconfigport.h.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'extmod/modnetwork.c')
| -rw-r--r-- | extmod/modnetwork.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modnetwork.c b/extmod/modnetwork.c index e05bfdb11..b698ee4cf 100644 --- a/extmod/modnetwork.c +++ b/extmod/modnetwork.c @@ -163,4 +163,6 @@ mp_obj_t mod_network_nic_ifconfig(struct netif *netif, size_t n_args, const mp_o #endif +MP_REGISTER_ROOT_POINTER(mp_obj_list_t mod_network_nic_list); + #endif // MICROPY_PY_NETWORK |
