1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/si70xx: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 23e2859528
commit 7be829c7e7

View File

@ -148,7 +148,7 @@ static int _test_device(const si70xx_t *dev)
int si70xx_init(si70xx_t *dev, const si70xx_params_t *params)
{
/* initialize the device descriptor */
memcpy(&dev->params, params, sizeof(si70xx_params_t));
dev->params = *params;
/* setup the i2c bus */
i2c_acquire(SI70XX_I2C);