diff --git a/adafruit_bme680.py b/adafruit_bme680.py index 144b877..0151ad0 100644 --- a/adafruit_bme680.py +++ b/adafruit_bme680.py @@ -390,7 +390,7 @@ def _perform_reading(self) -> None: data = self._read(_BME680_REG_MEAS_STATUS, 17) new_data = data[0] & 0x80 != 0 time.sleep(0.005) - if start_time >= time.monotonic() - 3.0: + if time.monotonic() - start_time >= 3.0: raise RuntimeError("Timeout while reading sensor data") self._last_reading = time.monotonic()