Skip to content

Commit 02407e1

Browse files
committed
Updated mask operation in constants.py to correct gas resistance
1 parent 888d8b3 commit 02407e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/bme680/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def set_from_array(self, calibration):
325325
def set_other(self, heat_range, heat_value, sw_error):
326326
self.res_heat_range = (heat_range & RHRANGE_MSK) // 16
327327
self.res_heat_val = heat_value
328-
self.range_sw_err = (sw_error * RSERROR_MSK) // 16
328+
self.range_sw_err = (sw_error & RSERROR_MSK) // 16
329329

330330
# BME680 sensor settings structure which comprises of ODR,
331331
# over-sampling and filter settings.

0 commit comments

Comments
 (0)