update Bosch BSEC lib to 1.8.1492
This commit is contained in:
1 parent
f1b7e5d426
commit
df04e9d438
6 files changed
+14
-13
No files matched your search
+8
-8
@@ -82,20 +82,20 @@ int bme_init(void) {
|
||||
int checkIaqSensorStatus(void) {
|
||||
int rslt = 1; // true = 1 = no error, false = 0 = error
|
||||
|
||||
if (iaqSensor.status != BSEC_OK) {
|
||||
if (iaqSensor.bsecStatus != BSEC_OK) {
|
||||
rslt = 0;
|
||||
if (iaqSensor.status < BSEC_OK)
|
||||
ESP_LOGE(TAG, "BSEC error %d", iaqSensor.status);
|
||||
if (iaqSensor.bsecStatus < BSEC_OK)
|
||||
ESP_LOGE(TAG, "BSEC error %d", iaqSensor.bsecStatus);
|
||||
else
|
||||
ESP_LOGW(TAG, "BSEC warning %d", iaqSensor.status);
|
||||
ESP_LOGW(TAG, "BSEC warning %d", iaqSensor.bsecStatus);
|
||||
}
|
||||
|
||||
if (iaqSensor.bme680Status != BME680_OK) {
|
||||
if (iaqSensor.bme68xStatus != BME68X_OK) {
|
||||
rslt = 0;
|
||||
if (iaqSensor.bme680Status < BME680_OK)
|
||||
ESP_LOGE(TAG, "BME680 error %d", iaqSensor.bme680Status);
|
||||
if (iaqSensor.bme68xStatus < BME68X_OK)
|
||||
ESP_LOGE(TAG, "BME680 error %d", iaqSensor.bme68xStatus);
|
||||
else
|
||||
ESP_LOGW(TAG, "BME680 warning %d", iaqSensor.bme680Status);
|
||||
ESP_LOGW(TAG, "BME680 warning %d", iaqSensor.bme68xStatus);
|
||||
}
|
||||
|
||||
return rslt;
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
// BME680 sensor on I2C bus
|
||||
#define HAS_BME 1 // Enable BME sensors in general
|
||||
#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL
|
||||
#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND
|
||||
#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
|
||||
|
||||
// BME280 sensor on I2C bus
|
||||
//#define HAS_BME 1 // Enable BME sensors in general
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
// Octopus32 has a pre-populated BME680 on i2c addr 0x76
|
||||
#define HAS_BME 1 // Enable BME sensors in general
|
||||
#define HAS_BME680 GPIO_NUM_23, GPIO_NUM_22 // SDA, SCL
|
||||
#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND
|
||||
#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
|
||||
|
||||
#define HAS_LED 13 // ESP32 GPIO12 (pin22) On Board LED
|
||||
//#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
// BME680 sensor on I2C bus
|
||||
//#define HAS_BME 1 // Enable BME sensors in general
|
||||
//#define HAS_BME680 SDA, SCL
|
||||
//#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !!
|
||||
//#define BME680_ADDR BME68X_I2C_ADDR_LOW // !! connect SDIO of BME680 to GND !!
|
||||
|
||||
// display (if connected)
|
||||
//#define HAS_DISPLAY 1
|
||||
|
||||
@@ -52,7 +52,7 @@ Reset -> reset device
|
||||
// BME680 sensor on I2C bus
|
||||
//#define HAS_BME 1 // Enable BME sensors in general
|
||||
//#define HAS_BME680 SDA, SCL
|
||||
//#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !!
|
||||
//#define BME680_ADDR BME68X_I2C_ADDR_LOW // !! connect SDIO of BME680 to GND !!
|
||||
|
||||
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||
|
||||
|
||||
Reference in new issue
Block a user