1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2025-06-29 10:30:31 +02:00

Tweaked polling, tweaked pressure scale

This commit is contained in:
Phil Howard
2017-10-17 12:45:28 +01:00
parent 73e93bc6d7
commit 6ed4ade9d7
2 changed files with 15 additions and 13 deletions

View File

@ -256,7 +256,7 @@ class BME680(BME680Data):
self.data.temperature = temperature / 100.0
self.ambient_temperature = temperature # Saved for heater calc
self.data.pressure = self._calc_pressure(adc_pres) / 1000.0
self.data.pressure = self._calc_pressure(adc_pres) / 100.0
self.data.humidity = self._calc_humidity(adc_hum) / 1000.0
self.data.gas_resistance = self._calc_gas_resistance(adc_gas_res, gas_range)
return True