We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e08c2d commit 4ae50e2Copy full SHA for 4ae50e2
library/bme680/__init__.py
@@ -64,7 +64,7 @@ def set_temp_offset(self, value):
64
"""
65
if value == 0:
66
self.offset_temp_in_t_fine = 0
67
- elif value < 0:
+ else:
68
self.offset_temp_in_t_fine = int(math.copysign((((int(abs(value) * 100)) << 8) - 128) / 5, value))
69
70
def set_humidity_oversample(self, value):
0 commit comments