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

drivers/bmx055: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent f8324c3bff
commit d0fc60a323

View File

@ -54,7 +54,7 @@ int bmx055_init(bmx055_t *dev, const bmx055_params_t *params)
uint8_t tmp;
memcpy(&dev->p, params, sizeof(bmx055_params_t));
dev->p = *params;
/* bring magnetometer from suspend mode to sleep mode just in case
* and try to read magnetometer id