diff options
| author | Damien George | 2018-06-01 13:27:06 +1000 |
|---|---|---|
| committer | Damien George | 2018-06-01 13:27:06 +1000 |
| commit | 6d87aa54d6a9d7219b93d7f3141b46afa9c70c48 (patch) | |
| tree | 71f07debd44202cde33a9322ec4b73c71c216943 /ports/stm32 | |
| parent | ea22406f7661edcce88defb9d20517ec967a5a9f (diff) | |
stm32/modnetwork: Don't take netif's down when network is deinited.
It should be up to the NIC itself to decide if the network interface is
removed upon soft reset. Some NICs can keep the interface up over a soft
reset, which improves usability of the network.
Diffstat (limited to 'ports/stm32')
| -rw-r--r-- | ports/stm32/modnetwork.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ports/stm32/modnetwork.c b/ports/stm32/modnetwork.c index 156c73572..42052e3c7 100644 --- a/ports/stm32/modnetwork.c +++ b/ports/stm32/modnetwork.c @@ -67,12 +67,6 @@ void mod_network_init(void) { } void mod_network_deinit(void) { - #if MICROPY_PY_LWIP - for (struct netif *netif = netif_list; netif != NULL; netif = netif->next) { - netif_remove(netif); - } - // TODO there may be some timeouts that are still pending... - #endif } void mod_network_register_nic(mp_obj_t nic) { |
