mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/xbee: do normal assignment instead of memcpy
This commit is contained in:
parent
811cda15cb
commit
b21399b25c
@ -483,7 +483,7 @@ void xbee_setup(xbee_t *dev, const xbee_params_t *params)
|
||||
dev->context = dev;
|
||||
|
||||
/* set peripherals to use */
|
||||
memcpy(&dev->p, params, sizeof(xbee_params_t));
|
||||
dev->p = *params;
|
||||
|
||||
/* initialize pins */
|
||||
if (dev->p.pin_reset != GPIO_UNDEF) {
|
||||
|
Loading…
Reference in New Issue
Block a user