1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

driver,bmp180: adapt SAUL scale to read pressure in hectoPascal (hPA)

This commit is contained in:
smlng 2017-06-15 11:24:02 +02:00
parent 92147cf269
commit 26c8338a04

View File

@ -39,9 +39,9 @@ static int read_pressure(void *dev, phydat_t *res)
{
bmp180_t *d = (bmp180_t *)dev;
res->val[0] = bmp180_read_pressure(d) / 10;
res->val[0] = bmp180_read_pressure(d) / 100;
res->unit = UNIT_PA;
res->scale = 1;
res->scale = 2;
return 1;
}