]> git.itanic.dy.fi Git - BME280_driver/blobdiff - bme280.c
Cleaned macros and defaulted to using floating point compensation
[BME280_driver] / bme280.c
index 0fcc1d758141346162a00aabcbf54b9c73f20a29..c3eabb58f7ce7412b924144775c9550e44b131d6 100644 (file)
--- a/bme280.c
+++ b/bme280.c
@@ -30,9 +30,9 @@
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
 * POSSIBILITY OF SUCH DAMAGE.\r
 *\r
-* @file bme280.c\r
-* @date 21/01/2020\r
-* @version  3.4.2\r
+* @file        bme280.c\r
+* @date        2020-01-24\r
+* @version     v3.4.3\r
 *\r
 */\r
 \r
@@ -1203,7 +1203,7 @@ static int32_t compensate_temperature(const struct bme280_uncomp_data *uncomp_da
 \r
     return temperature;\r
 }\r
-#ifdef BME280_64BIT_ENABLE\r
+#ifndef BME280_32BIT_ENABLE /* 64 bit compensation for pressure data */\r
 \r
 /*!\r
  * @brief This internal API is used to compensate the raw pressure data and\r
@@ -1254,7 +1254,7 @@ static uint32_t compensate_pressure(const struct bme280_uncomp_data *uncomp_data
 \r
     return pressure;\r
 }\r
-#else\r
+#else /* 32 bit compensation for pressure data */\r
 \r
 /*!\r
  * @brief This internal API is used to compensate the raw pressure data and\r