1
0
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:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 811cda15cb
commit b21399b25c

View File

@ -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) {