Zanduino / BME680

Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
GNU General Public License v3.0
41 stars 10 forks source link

Using the "reset()" function doesn't work correctly when specifying I2C Address #16

Closed SV-Zanshin closed 4 years ago

SV-Zanshin commented 4 years ago

Expected Behavior

The library should function after doing a [reset()](https://github.com/SV-Zanshin/BME680/wiki/reset()) when using I2C with a specified address

Actual Behavior

The [reset()](https://github.com/SV-Zanshin/BME680/wiki/reset()) is issued, but the library doesn't remember the original [begin()](https://github.com/SV-Zanshin/BME680/wiki/begin()) parameter value, if specified.

Steps to Reproduce the Problem

The error is only visible when multiple BME680 devices are present on the bus and the [reset()](https://github.com/SV-Zanshin/BME680/wiki/reset()) is called on the library with 0x77 address.

Specifications

Zanshin Logo

SV-Zanshin commented 4 years ago

I've modified the code and now just have to test it with 2 BME680s on the I2C bus

SV-Zanshin commented 4 years ago

Tests successful. Fix implemented as part of v1.0.6