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:
parent
f8324c3bff
commit
d0fc60a323
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user