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

drivers/tmp006: do normal assignment instead of memcpy

parent e60715d2
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ int tmp006_init(tmp006_t *dev, const tmp006_params_t *params) ...@@ -70,7 +70,7 @@ int tmp006_init(tmp006_t *dev, const tmp006_params_t *params)
uint16_t tmp; uint16_t tmp;
/* initialize the device descriptor */ /* initialize the device descriptor */
memcpy(&dev->p, params, sizeof(tmp006_params_t)); dev->p = *params;
if (dev->p.rate > TMP006_CONFIG_CR_AS16) { if (dev->p.rate > TMP006_CONFIG_CR_AS16) {
LOG_ERROR("tmp006_init: invalid conversion rate!\n"); LOG_ERROR("tmp006_init: invalid conversion rate!\n");
......
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