mirror of
https://github.com/cmur2/python-bme680.git
synced 2026-10-23 08:45:17 +02:00
Updated mask operation in constants.py to correct gas resistance
This commit is contained in:
1 parent
888d8b312a
commit
02407e1d01
1 file changed
+1
-1
@@ -325,7 +325,7 @@ class CalibrationData:
|
|||||||
def set_other(self, heat_range, heat_value, sw_error):
|
def set_other(self, heat_range, heat_value, sw_error):
|
||||||
self.res_heat_range = (heat_range & RHRANGE_MSK) // 16
|
self.res_heat_range = (heat_range & RHRANGE_MSK) // 16
|
||||||
self.res_heat_val = heat_value
|
self.res_heat_val = heat_value
|
||||||
self.range_sw_err = (sw_error * RSERROR_MSK) // 16
|
self.range_sw_err = (sw_error & RSERROR_MSK) // 16
|
||||||
|
|
||||||
# BME680 sensor settings structure which comprises of ODR,
|
# BME680 sensor settings structure which comprises of ODR,
|
||||||
# over-sampling and filter settings.
|
# over-sampling and filter settings.
|
||||||
|
|||||||
Reference in new issue
Block a user