From 24934a1e8abbe51809c47b94fa5657d21ac783fb Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Tue, 7 May 2019 18:20:08 +1000 Subject: [PATCH] Clean up list of NICs on network deinit adafruit/circuitpython#1800 --- shared-module/network/__init__.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shared-module/network/__init__.c b/shared-module/network/__init__.c index a674e8478d..c5783758df 100644 --- a/shared-module/network/__init__.c +++ b/shared-module/network/__init__.c @@ -43,6 +43,7 @@ void network_module_init(void) { } void network_module_deinit(void) { + mp_obj_list_set_len(&MP_STATE_PORT(mod_network_nic_list), 0); } void network_module_background(void) {