Skip to content

Commit

Permalink
drivers/bmx055: fix crazy use of FPU
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed May 31, 2023
1 parent 67c011f commit 6ddf761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bmx055/bmx055.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 6ddf761

Please sign in to comment.