Skip to content
Snippets Groups Projects
Commit 287a0757 authored by Kees Bakker's avatar Kees Bakker
Browse files

drivers/my9221: do normal assignment instead of memcpy

parent 45a3d005
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ int my9221_init(my9221_t *dev, const my9221_params_t *params)
assert(dev);
assert(params);
/* write config params to device descriptor */
memcpy(&dev->params, params, sizeof(my9221_params_t));
dev->params = *params;
/* init clock and data pins as output */
gpio_init(PIN_CLK, GPIO_OUT);
gpio_init(PIN_DAT, GPIO_OUT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment