summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-07-27 10:45:38 +0200
committerDamien George <damien@micropython.org>2022-08-09 16:33:55 +1000
commit736b427220ae0689694fc784bd4426605d556c4c (patch)
treef9cba394f6d2b4592ae11b2ce93968b9cebae635
parentd7ef90122e9215b5a5f47b5a340b29e2666fa164 (diff)
extmod/network_wiznet5k: Register NIC when the lwIP stack is used.
That was missing, and network.route() returned an empty list.
-rw-r--r--extmod/network_wiznet5k.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/network_wiznet5k.c b/extmod/network_wiznet5k.c
index f328276a5..fecb6ae8c 100644
--- a/extmod/network_wiznet5k.c
+++ b/extmod/network_wiznet5k.c
@@ -224,6 +224,9 @@ STATIC void wiznet5k_init(void) {
netif_set_link_up(&wiznet5k_obj.netif);
netif_set_up(&wiznet5k_obj.netif);
+
+ // register with network module
+ mod_network_register_nic(&wiznet5k_obj);
}
void wiznet5k_deinit(void) {