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

That was missing, and network.route() returned an empty list.
This commit is contained in:
robert-hh 2022-07-27 10:45:38 +02:00 committed by Damien George
parent d7ef90122e
commit 736b427220
1 changed files with 3 additions and 0 deletions

View File

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