diff --git a/tests/driver_at86rf2xx/main.c b/tests/driver_at86rf2xx/main.c index e269fbd721829..1be7bfb5bbc0a 100644 --- a/tests/driver_at86rf2xx/main.c +++ b/tests/driver_at86rf2xx/main.c @@ -98,8 +98,8 @@ int main(void) printf("Initializing AT86RF2xx radio at SPI_%d\n", p->spi); at86rf2xx_setup(&devs[i], p->spi, p->spi_speed, p->cs_pin, p->int_pin, p->sleep_pin, p->reset_pin); - dev->driver->init(dev); dev->event_callback = _event_cb; + dev->driver->init(dev); } _recv_pid = thread_create(stack, sizeof(stack), THREAD_PRIORITY_MAIN - 1,