1
0
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:
Marian Buschsieweke 2023-05-31 14:53:51 +02:00
parent 67c011f5a4
commit 6ddf76103a
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

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