mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:29:45 +01:00
drivers/bmx055: fix crazy use of FPU
This commit is contained in:
parent
67c011f5a4
commit
6ddf76103a
@ -234,7 +234,7 @@ int bmx055_gyro_read(const bmx055_t *dev, int16_t *data)
|
||||
uint16_t scale;
|
||||
|
||||
/* converting scale info into real scaling values */
|
||||
scale = (GYRO_2000_DPS / pow(2, dev->p.gyro_scale));
|
||||
scale = GYRO_2000_DPS >> dev->p.gyro_scale;
|
||||
|
||||
/* reading gyroscope data */
|
||||
i2c_acquire(BUS);
|
||||
|
Loading…
Reference in New Issue
Block a user