1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/cc2420: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent d0fc60a323
commit d79350f2ab

View File

@ -38,7 +38,7 @@ void cc2420_setup(cc2420_t * dev, const cc2420_params_t *params)
/* set pointer to the devices netdev functions */
dev->netdev.netdev.driver = &cc2420_driver;
/* pull in device configuration parameters */
memcpy(&dev->params, params, sizeof(cc2420_params_t));
dev->params = *params;
dev->state = CC2420_STATE_IDLE;
/* reset device descriptor fields */
dev->options = 0;