Skip to content

Commit

Permalink
drivers/hts221: do normal assignment instead of memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees Bakker committed Jan 10, 2019
1 parent 5bb50ea commit 7a66106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hts221/hts221.c
Expand Up @@ -147,7 +147,7 @@ int hts221_init(hts221_t *dev, const hts221_params_t *params)
{
uint8_t reg;

memcpy(&dev->p, params, sizeof(hts221_params_t));
dev->p = *params;

i2c_acquire(BUS);
/* try if we can interact with the device by reading its manufacturer ID */
Expand Down

0 comments on commit 7a66106

Please sign in to comment.