Skip to content

Commit 9ef406a

Browse files
initialize t_fine_adjust to 0
1 parent 4e70835 commit 9ef406a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_BME280.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ class Adafruit_BME280 {
277277
int8_t _miso; //!< for the SPI interface
278278
int8_t _sck; //!< for the SPI interface
279279

280-
int32_t t_fine_adjust; //!< add to compensate temp readings and in turn to
281-
//!< pressure and humidity readings
280+
int32_t t_fine_adjust = 0; //!< add to compensate temp readings and in turn
281+
//!< to pressure and humidity readings
282282

283283
bme280_calib_data _bme280_calib; //!< here calibration data is stored
284284

0 commit comments

Comments
 (0)