Skip to content
Snippets Groups Projects
Commit c82f9759 authored by Kees Bakker's avatar Kees Bakker
Browse files

drivers/at86rf2xx: do normal assignment instead of memcpy

parent d50038f9
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ void at86rf2xx_setup(at86rf2xx_t *dev, const at86rf2xx_params_t *params)
netdev->driver = &at86rf2xx_driver;
/* initialize device descriptor */
memcpy(&dev->params, params, sizeof(at86rf2xx_params_t));
dev->params = *params;
/* State to return after receiving or transmitting */
dev->idle_state = AT86RF2XX_STATE_TRX_OFF;
/* radio state is P_ON when first powered-on */
......
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