Skip to content

Commit

Permalink
Merge pull request #56 from patcher-ms/patch-1
Browse files Browse the repository at this point in the history
Use correct value to compute gas resistance
  • Loading branch information
FoamyGuy committed Aug 7, 2023
2 parents d7909fe + ae1a338 commit 19775f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_bme680.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def gas(self) -> int:
var2 = self._adc_gas - 512
var2 *= 3
var2 = 4096 + var2
calc_gas_res = (1000 * var1) / var2
calc_gas_res = (10000 * var1) / var2
calc_gas_res = calc_gas_res * 100
else:
var1 = (
Expand Down

0 comments on commit 19775f6

Please sign in to comment.