drivers/hdc1000: do normal assignment instead of memcpy
This commit is contained in:
parent
2918d06e9c
commit
5bb50ea6a5
@ -40,7 +40,7 @@ int hdc1000_init(hdc1000_t *dev, const hdc1000_params_t *params)
|
|||||||
uint16_t tmp;
|
uint16_t tmp;
|
||||||
|
|
||||||
/* write device descriptor */
|
/* 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 */
|
/* try if we can interact with the device by reading its manufacturer ID */
|
||||||
i2c_acquire(dev->p.i2c);
|
i2c_acquire(dev->p.i2c);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user