mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #7194 from smlng/enh/driver/bmp180/saul_scale
driver,bmp180: adapt SAUL scale to read pressure in hectoPascal (hPA)
This commit is contained in:
commit
fbb8f478db
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user