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

drivers/hts221: do normal assignment instead of memcpy

parent 5bb50ea6
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ int hts221_init(hts221_t *dev, const hts221_params_t *params) ...@@ -147,7 +147,7 @@ int hts221_init(hts221_t *dev, const hts221_params_t *params)
{ {
uint8_t reg; uint8_t reg;
memcpy(&dev->p, params, sizeof(hts221_params_t)); dev->p = *params;
i2c_acquire(BUS); i2c_acquire(BUS);
/* 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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment