From 9ef406a5309ffa6035da4f94297f35120be0c1a0 Mon Sep 17 00:00:00 2001 From: Jason Mansfield Date: Mon, 3 Aug 2020 13:57:10 -0700 Subject: [PATCH] initialize t_fine_adjust to 0 --- Adafruit_BME280.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_BME280.h b/Adafruit_BME280.h index 30bac3e..eec27da 100644 --- a/Adafruit_BME280.h +++ b/Adafruit_BME280.h @@ -277,8 +277,8 @@ protected: int8_t _miso; //!< for the SPI interface int8_t _sck; //!< for the SPI interface - int32_t t_fine_adjust; //!< add to compensate temp readings and in turn to - //!< pressure and humidity readings + int32_t t_fine_adjust = 0; //!< add to compensate temp readings and in turn + //!< to pressure and humidity readings bme280_calib_data _bme280_calib; //!< here calibration data is stored