Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adafruit/Adafruit_CircuitPython_BME680
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.7.10
Choose a base ref
...
head repository: adafruit/Adafruit_CircuitPython_BME680
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.7.11
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 18, 2024

  1. Fix timeout error in adafruit_bme680.py

    This fixes #76.
    
    Line 393 of the library adafruit_bme680.py is written,
    
    if start_time >= time.monotonic() - 3.0:
                    raise RuntimeError("Timeout while reading sensor data")
    
    However, this is always going to return true and raise a Runtime Error regardless of your timing rate. This commit replaces line of code with the inverse of that, which is looking at the difference between the time.monotonic (the overall time) and the start_time (when you are looking at a new sensor data):
    
    if time.monotonic() - start_time >= 3.0:
                    raise RuntimeError("Timeout while reading sensor data")
    savannahcofer committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    42cfd8d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #77 from savannahcofer/bugfix/script_timeout

    Fix timeout error in adafruit_bme680.py
    FoamyGuy authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    6e6555b View commit details
    Browse the repository at this point in the history
Loading