mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/kw2xrf: do normal assignment instead of memcpy
This commit is contained in:
parent
7a66106846
commit
7126b1deb2
@ -60,7 +60,7 @@ void kw2xrf_setup(kw2xrf_t *dev, const kw2xrf_params_t *params)
|
||||
|
||||
netdev->driver = &kw2xrf_driver;
|
||||
/* initialize device descriptor */
|
||||
memcpy(&dev->params, params, sizeof(kw2xrf_params_t));
|
||||
dev->params = *params;
|
||||
dev->idle_state = XCVSEQ_RECEIVE;
|
||||
dev->state = 0;
|
||||
dev->pending_tx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user