diff --git a/README.md b/README.md index 6821c32..ebc10e0 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ The sensor driver package includes bme680.h, bme680.c and bme680_defs.h files ## Version File | Version | Date --------------|---------|------------- -bme680.c | 3.5.6 | 19 Jan 2018 -bme680.h | 3.5.6 | 19 Jan 2018 -bme680_defs.h | 3.5.6 | 19 Jan 2018 +bme680.c | 3.5.7 | 05 Feb 2018 +bme680.h | 3.5.7 | 05 Feb 2018 +bme680_defs.h | 3.5.7 | 05 Feb 2018 ## Integration details * Integrate bme680.h, bme680_defs.h and bme680.c file in to your project. diff --git a/bme680.c b/bme680.c index d41d16e..a8ed299 100644 --- a/bme680.c +++ b/bme680.c @@ -40,8 +40,8 @@ * patent rights of the copyright holder. * * File bme680.c - * @date 19 Jan 2018 - * @version 3.5.6 + * @date 05 Feb 2018 + * @version 3.5.7 * */ @@ -924,7 +924,7 @@ static uint32_t calc_pressure(uint32_t pres_adc, const struct bme680_dev *dev) var1 = ((32768 + var1) * (int32_t)dev->calib.par_p1) >> 15; pressure_comp = 1048576 - pres_adc; pressure_comp = (int32_t)((pressure_comp - (var2 >> 12)) * ((uint32_t)3125)); - var4 = (INT32_C(1) << 31); + var4 = (int32_t)(((uint32_t)1) << 31); if (pressure_comp >= var4) pressure_comp = ((pressure_comp / (uint32_t)var1) << 1); else diff --git a/bme680.h b/bme680.h index 8079697..9a93e13 100644 --- a/bme680.h +++ b/bme680.h @@ -40,8 +40,8 @@ * patent rights of the copyright holder. * * @file bme680.h - * @date 19 Jan 2018 - * @version 3.5.6 + * @date 05 Feb 2018 + * @version 3.5.7 * @brief * */ diff --git a/bme680_defs.h b/bme680_defs.h index 630b70d..04323ef 100644 --- a/bme680_defs.h +++ b/bme680_defs.h @@ -40,8 +40,8 @@ * patent rights of the copyright holder. * * @file bme680_defs.h - * @date 19 Jan 2018 - * @version 3.5.6 + * @date 05 Feb 2018 + * @version 3.5.7 * @brief * */ diff --git a/changelog.md b/changelog.md index e3fd739..fe41d06 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ # Change Log All notable changes to the BME680 Sensor API will be documented in this file. +## v3.5.7, 05 Feb 2018 +### Fixed + - Integer overflow issue fixed in "calc_pressure" API + ## v3.5.6, 19 Jan 2018 ### Added - Floating point support added for the API