Skip to content
Snippets Groups Projects
Commit fbb8f478 authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #7194 from smlng/enh/driver/bmp180/saul_scale

driver,bmp180: adapt SAUL scale to read pressure in hectoPascal (hPA)
parents 42830d23 26c8338a
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment