1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 22:54:29 +01:00

Remove redundant tweaking of measurement settings after soft reset, let user choose once

This commit is contained in:
cn 2018-12-07 11:29:17 +01:00 committed by Christian Nicolai
parent 405867a4aa
commit c85e3de250

View File

@ -50,13 +50,7 @@ class BME680(BME680Data):
self._get_calibration_data() self._get_calibration_data()
self.set_humidity_oversample(constants.OS_2X)
self.set_pressure_oversample(constants.OS_4X)
self.set_temperature_oversample(constants.OS_8X)
self.set_filter(constants.FILTER_SIZE_3)
self.set_gas_status(constants.ENABLE_GAS_MEAS)
self.set_temp_offset(0) self.set_temp_offset(0)
self.get_sensor_data()
def _get_calibration_data(self): def _get_calibration_data(self):
"""Retrieve the sensor calibration data and store it in .calibration_data.""" """Retrieve the sensor calibration data and store it in .calibration_data."""