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

drivers/mma8x5x: do normal assignment instead of memcpy

parent 885b1231
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ int mma8x5x_init(mma8x5x_t *dev, const mma8x5x_params_t *params)
assert(dev && params);
/* write device descriptor */
memcpy(dev, params, sizeof(mma8x5x_params_t));
dev->params = *params;
/* acquire the I2C bus */
i2c_acquire(BUS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment