diff --git a/drivers/hdc1000/hdc1000.c b/drivers/hdc1000/hdc1000.c index 400ecab6fa584726f7b2b3c2243624ea5f3a139f..8030e312f724fd9814087a4c79d22b8cb286c780 100644 --- a/drivers/hdc1000/hdc1000.c +++ b/drivers/hdc1000/hdc1000.c @@ -40,7 +40,7 @@ int hdc1000_init(hdc1000_t *dev, const hdc1000_params_t *params) uint16_t tmp; /* write device descriptor */ - memcpy(&dev->p, params, sizeof(hdc1000_params_t)); + dev->p = *params; /* try if we can interact with the device by reading its manufacturer ID */ i2c_acquire(dev->p.i2c);