extmod/network_wiznet5k: Register NIC when the lwIP stack is used.

That was missing, and network.route() returned an empty list.
pull/9032/head
robert-hh 2022-07-27 10:45:38 +02:00 zatwierdzone przez Damien George
rodzic d7ef90122e
commit 736b427220
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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) {