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:
parent
d0fc60a323
commit
d79350f2ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user