We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9ba41 commit ae004aaCopy full SHA for ae004aa
1 file changed
library/bme680/__init__.py
@@ -65,9 +65,9 @@ def set_temp_offset(self, value):
65
if value == 0:
66
self.offset_temp_in_t_fine = 0
67
elif value < 0:
68
- self.offset_temp_in_t_fine = -int((((abs(value) * 100) << 8) - 128) / 5)
+ self.offset_temp_in_t_fine = -int((((int(abs(value) * 100)) << 8) - 128) / 5)
69
else:
70
- self.offset_temp_in_t_fine = int((((abs(value) * 100) << 8) - 128) / 5)
+ self.offset_temp_in_t_fine = int((((int(abs(value) * 100)) << 8) - 128) / 5)
71
72
def set_humidity_oversample(self, value):
73
"""Set humidity oversampling
0 commit comments