1
0
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:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent f1856887af
commit e60715d243

View File

@ -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);