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:
parent
23e2859528
commit
7be829c7e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user