Fixed bug in set_temp_offset

This commit is contained in:
Phil Howard 2018-06-01 16:10:08 +01:00
parent 7e08c2d749
commit 4ae50e2f2c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class BME680(BME680Data):
"""
if value == 0:
self.offset_temp_in_t_fine = 0
elif value < 0:
else:
self.offset_temp_in_t_fine = int(math.copysign((((int(abs(value) * 100)) << 8) - 128) / 5, value))
def set_humidity_oversample(self, value):