mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/tcs37727: do normal assignment instead of memcpy
This commit is contained in:
parent
f1856887af
commit
e60715d243
@ -44,7 +44,7 @@ int tcs37727_init(tcs37727_t *dev, const tcs37727_params_t *params)
|
||||
assert(dev && params);
|
||||
|
||||
/* initialize the device descriptor */
|
||||
memcpy(&dev->p, params, sizeof(tcs37727_params_t));
|
||||
dev->p = *params;
|
||||
|
||||
/* setup the I2C bus */
|
||||
i2c_acquire(BUS);
|
||||
|
Loading…
Reference in New Issue
Block a user