mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
19691: drivers/bmx055: fix crazy use of FPU r=maribu a=maribu ### Contribution description As the title says... 19694: tests/drivers/epd_bw_spi_disp_dev: fix accidental use of FPU r=maribu a=maribu Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
This commit is contained in:
commit
e71054def9
@ -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);
|
||||
|
@ -53,7 +53,7 @@ int main(void)
|
||||
.x1 = 0,
|
||||
.x2 = riot_200_width - 1,
|
||||
.y1 = 0,
|
||||
.y2 = riot_200_width - 1.
|
||||
.y2 = riot_200_width - 1,
|
||||
};
|
||||
|
||||
dev->driver = &epd_bw_spi_disp_dev_driver;
|
||||
@ -70,7 +70,7 @@ int main(void)
|
||||
.x1 = x,
|
||||
.x2 = x + riot_32_width - 1,
|
||||
.y1 = y,
|
||||
.y2 = y + riot_32_height - 1.
|
||||
.y2 = y + riot_32_height - 1,
|
||||
};
|
||||
|
||||
disp_dev_map(dev, &small_area, (void *)riot_logo_32);
|
||||
|
Loading…
Reference in New Issue
Block a user