pimoroni / bme680-python

Python library for the BME680 gas, temperature, humidity and pressure sensor.
https://shop.pimoroni.com/products/bme680
MIT License
260 stars 93 forks source link

sensor never leaves FORCED_MODE #9

Closed kimbauters closed 6 years ago

kimbauters commented 6 years ago

I've been looking through the code in detail, and there seems to be something odd with get_sensor_data(self). The power mode is set to FORCED_MODE at the start, but is never returned to the mode it was in when starting the method. Is this intentional? Or should the mode be saved when entering this method, and reset just before returning?

Gadgetoid commented 6 years ago

FORCED_MODE should trigger a single measurement and then reset to 0.

The data sheet says: