drivers/rn2xx3: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 287a075751
commit 4f9df5cac9

View File

@ -141,7 +141,7 @@ void rn2xx3_setup(rn2xx3_t *dev, const rn2xx3_params_t *params)
assert(dev && (params->uart < UART_NUMOF));
/* initialize device parameters */
memcpy(&dev->p, params, sizeof(rn2xx3_params_t));
dev->p = *params;
/* initialize pins and perform hardware reset */
if (dev->p.pin_reset != GPIO_UNDEF) {