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

drivers/hdc1000: do normal assignment instead of memcpy

parent 2918d06e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment