Skip to content

Commit 6e6555b

Browse files
authored
Merge pull request #77 from savannahcofer/bugfix/script_timeout
Fix timeout error in adafruit_bme680.py
2 parents 4c14417 + 42cfd8d commit 6e6555b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bme680.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _perform_reading(self) -> None:
390390
data = self._read(_BME680_REG_MEAS_STATUS, 17)
391391
new_data = data[0] & 0x80 != 0
392392
time.sleep(0.005)
393-
if start_time >= time.monotonic() - 3.0:
393+
if time.monotonic() - start_time >= 3.0:
394394
raise RuntimeError("Timeout while reading sensor data")
395395
self._last_reading = time.monotonic()
396396

0 commit comments

Comments
 (0)