adafruit / Adafruit_BME680

117 stars 76 forks source link

Re#defined items in BSEC_Software_Library/src/bme680/bme680_defs.h generate warnings #52

Closed ayourk closed 1 year ago

ayourk commented 1 year ago

https://github.com/adafruit/Adafruit_BME680/blob/29897a675e3102ae8e5a329e58377a4efdb36c3b/Adafruit_BME680.h#L38-L60

The above lines are defined in BSEC_Software_Library/src/bme680/bme680_defs.h and cause warnings if both bsec.h is included and Adafruit_BME680.h is included in the same project.

caternuson commented 1 year ago

Not familiar with BSEC, but appears to be a more sophisticated library for the BME680 provided by Bosch: https://www.bosch-sensortec.com/software-tools/software/bsec/ https://github.com/BoschSensortec/BSEC-Arduino-library

The BSEC library is probably meant to be used stand alone. Looks like there's a basic example here: https://github.com/BoschSensortec/BSEC-Arduino-library/blob/master/examples/basic/basic.ino

caternuson commented 1 year ago

Closing. Looking at this again, pretty sure the BSEC library is meant to be standalone. That is - don't use the BSEC library in conjunction with this Adafruit Arduino library.