1
0
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:
malo 2016-04-09 22:12:44 +02:00
parent 86eb928642
commit b9705c8727

View File

@ -36,7 +36,7 @@ static uint32_t si70xx_measure(si70xx_t *dev, uint8_t command)
i2c_release(dev->i2c_dev);
/* 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)