mirror of
https://github.com/cmur2/python-bme680.git
synced 2025-06-29 10:30:31 +02:00
Added heat_stable flag
This commit is contained in:
@ -121,6 +121,8 @@ class BME680(BME680Data):
|
||||
self.data.status |= regs[14] & GASM_VALID_MSK
|
||||
self.data.status |= regs[14] & HEAT_STAB_MSK
|
||||
|
||||
self.data.heat_stable = (self.data.status & HEAT_STAB_MSK) > 0
|
||||
|
||||
if self.data.status & NEW_DATA_MSK:
|
||||
self.data.temperature = self._calc_temperature(adc_temp)
|
||||
self.ambient_temperature = self.data.temperature
|
||||
|
@ -238,6 +238,7 @@ class FieldData:
|
||||
def __init__(self):
|
||||
# Contains new_data, gasm_valid & heat_stab
|
||||
self.status = None
|
||||
self.heat_stable = False
|
||||
# The index of the heater profile used
|
||||
self.gas_index = None
|
||||
# Measurement index to track order
|
||||
|
Reference in New Issue
Block a user