Skip to content

Commit

Permalink
Merge pull request #7194 from smlng/enh/driver/bmp180/saul_scale
Browse files Browse the repository at this point in the history
driver,bmp180: adapt SAUL scale to read pressure in hectoPascal (hPA)
  • Loading branch information
aabadie committed Jun 21, 2017
2 parents 42830d2 + 26c8338 commit fbb8f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bmp180/bmp180_saul.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit fbb8f47

Please sign in to comment.