diff --git a/library/bme680/__init__.py b/library/bme680/__init__.py index 5937012..865fe40 100644 --- a/library/bme680/__init__.py +++ b/library/bme680/__init__.py @@ -65,9 +65,9 @@ class BME680(BME680Data): if value == 0: self.offset_temp_in_t_fine = 0 elif value < 0: - 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) else: - 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) def set_humidity_oversample(self, value): """Set humidity oversampling