# HG changeset patch # User Ethan Zonca # Date 2017-02-08 16:32:25 # Node ID 645e46f4898d61d157b436407e9fc3ec9d009903 # Parent 55d6f1467ce43fe08f449d95a690cf8ad70e0705 Update scale for bme280 to tenths of percent, disable lps25h diff --git a/Include/config.h b/Include/config.h --- a/Include/config.h +++ b/Include/config.h @@ -21,7 +21,7 @@ // Uncomment if using legacy LPS25h pressure sensor -#define LPS25H +//#define LPS25H #define FRIENDLY_MODE diff --git a/Source/bme280.c b/Source/bme280.c --- a/Source/bme280.c +++ b/Source/bme280.c @@ -113,7 +113,7 @@ void bme280_update(void) pressure = bme280_convert_pressure(result[0] << 12 | result[1] << 4 | (result[2] & 0xf0) << 0) / 256 / 10; // convert to mBar/hPa temperature = bme280_convert_temperature(result[3] << 12 | result[4] << 4 | (result[5] & 0xf0) << 0); // 0.01C - humidity = bme280_convert_humidity(result[6] << 8 | result[7] << 0) / 1024; // 0.01% RH + humidity = bme280_convert_humidity(result[6] << 8 | result[7] << 0) / (1024/10); // 0.1% RH }