Return temperature offset in get_sensor_settings (#12)
This commit is contained in:
parent
25dd144399
commit
0c90c96a85
1 changed files with 1 additions and 0 deletions
|
@ -609,6 +609,7 @@ where
|
||||||
let reg_addr: u8 = 0x70u8;
|
let reg_addr: u8 = 0x70u8;
|
||||||
let mut data_array: [u8; BME680_REG_BUFFER_LENGTH] = [0; BME680_REG_BUFFER_LENGTH];
|
let mut data_array: [u8; BME680_REG_BUFFER_LENGTH] = [0; BME680_REG_BUFFER_LENGTH];
|
||||||
let mut sensor_settings: SensorSettings = Default::default();
|
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)?;
|
I2CUtil::read_bytes(&mut self.i2c, self.dev_id.addr(), reg_addr, &mut data_array)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue