Skip to content
Snippets Groups Projects
Commit 2c7c3d8a authored by Martine Lenders's avatar Martine Lenders
Browse files

nrfmin: adapt for changes to gnrc_netif2_create()

parent 3929550e
No related branches found
No related tags found
No related merge requests found
......@@ -218,11 +218,8 @@ void gnrc_nrfmin_init(void)
/* setup the NRFMIN driver */
nrfmin_setup();
#ifdef MODULE_GNRC_NETIF2
if (!gnrc_netif2_create(stack, sizeof(stack), NRFMIN_GNRC_THREAD_PRIO,
"nrfmin", (netdev_t *)&nrfmin_dev,
&gnrc_nrfmin_ops)) {
DEBUG("[nrfmin_dev] error initializing GNRC interface for nrfmin radio\n");
}
gnrc_netif2_create(stack, sizeof(stack), NRFMIN_GNRC_THREAD_PRIO, "nrfmin",
(netdev_t *)&nrfmin_dev, &gnrc_nrfmin_ops);
#else
/* initialize the GNRC plug struct */
plug.send = gnrc_nrfmin_send;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment