diff --git a/src/lib.rs b/src/lib.rs index e9604c4..3247a9b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -609,6 +609,7 @@ where let reg_addr: u8 = 0x70u8; let mut data_array: [u8; BME680_REG_BUFFER_LENGTH] = [0; BME680_REG_BUFFER_LENGTH]; let mut sensor_settings: SensorSettings = Default::default(); + sensor_settings.tph_sett.temperature_offset = self.tph_sett.temperature_offset; I2CUtil::read_bytes(&mut self.i2c, self.dev_id.addr(), reg_addr, &mut data_array)?;