diff --git a/drivers/mma8x5x/mma8x5x.c b/drivers/mma8x5x/mma8x5x.c index 3850d23453f2b22a699e8a4fcc3e2818c8cc75d6..d515cc1d450a277f6a3eedf6e7093fa2b9d412ff 100644 --- a/drivers/mma8x5x/mma8x5x.c +++ b/drivers/mma8x5x/mma8x5x.c @@ -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);