mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers: si70xx: fixed si70xx_measure return value calculation on 16bit platforms
Signed-off-by: malo <malo@25cmsquare.io>
This commit is contained in:
parent
86eb928642
commit
b9705c8727
@ -36,7 +36,7 @@ static uint32_t si70xx_measure(si70xx_t *dev, uint8_t command)
|
|||||||
i2c_release(dev->i2c_dev);
|
i2c_release(dev->i2c_dev);
|
||||||
|
|
||||||
/* reconstruct raw result */
|
/* reconstruct raw result */
|
||||||
return (result[0] << 8) + (result[1] & 0xfc);
|
return ((uint32_t)result[0] << 8) + (result[1] & 0xfc);
|
||||||
}
|
}
|
||||||
|
|
||||||
int si70xx_test(si70xx_t *dev)
|
int si70xx_test(si70xx_t *dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user