Skip to content

Commit

Permalink
Merge pull request #8 from lowflyerUK/master
Browse files Browse the repository at this point in the history
Updated mask operation in constants.py to correct gas resistance
  • Loading branch information
Gadgetoid authored Dec 4, 2017
2 parents 888d8b3 + 02407e1 commit 097287e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/bme680/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def set_from_array(self, calibration):
def set_other(self, heat_range, heat_value, sw_error):
self.res_heat_range = (heat_range & RHRANGE_MSK) // 16
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,
# over-sampling and filter settings.
Expand Down

0 comments on commit 097287e

Please sign in to comment.