From 94f441360b64d14a188bec6b1b5e1c8a54973962 Mon Sep 17 00:00:00 2001 From: windkh Date: Sun, 22 Nov 2015 20:30:41 +0100 Subject: [PATCH] Pressure is not rounded anymore: value is divided by 100.0 instead of 100. --- .../examples/WeatherStationSensor/WeatherStationSensor.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/MySensors/examples/WeatherStationSensor/WeatherStationSensor.ino b/libraries/MySensors/examples/WeatherStationSensor/WeatherStationSensor.ino index bf3499e..38c4046 100644 --- a/libraries/MySensors/examples/WeatherStationSensor/WeatherStationSensor.ino +++ b/libraries/MySensors/examples/WeatherStationSensor/WeatherStationSensor.ino @@ -211,7 +211,7 @@ bool updatePressureSensor() bool changed = false; //sealevel pressure p0 from absolute pressure. - float pressure = bmp.readSealevelPressure(SEALEVEL) / 100; + float pressure = bmp.readSealevelPressure(SEALEVEL) / 100.0; float temperature = bmp.readTemperature(); if (!metric) {