1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

drivers/mma7660: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 8e898576dc
commit 885b123147

View File

@ -48,7 +48,7 @@
int mma7660_init(mma7660_t *dev, const mma7660_params_t *params)
{
/* write device descriptor */
memcpy(&dev->params, params, sizeof(mma7660_params_t));
dev->params = *params;
if (mma7660_set_mode(dev, 0, 0, 0, 0) != MMA7660_OK) {
DEBUG("mma7660_set_mode failed!\n");