From 26c8338a045b78f77fe04fb6911f8893f456401d Mon Sep 17 00:00:00 2001 From: smlng Date: Thu, 15 Jun 2017 11:24:02 +0200 Subject: [PATCH] driver,bmp180: adapt SAUL scale to read pressure in hectoPascal (hPA) --- drivers/bmp180/bmp180_saul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bmp180/bmp180_saul.c b/drivers/bmp180/bmp180_saul.c index e918a1b3bb..03158315e6 100644 --- a/drivers/bmp180/bmp180_saul.c +++ b/drivers/bmp180/bmp180_saul.c @@ -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; }