Skip to content

Commit f5c0a74

Browse files
authored
Merge pull request #2227 from Quency-D/fix-BME680
Fixed the initialization error of the BME680 sensor.
2 parents d0450bc + 2cbe0c0 commit f5c0a74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/helpers/sensors/EnvironmentSensorManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#endif
1313
#define TELEM_BME680_SEALEVELPRESSURE_HPA (1013.25)
1414
#include <Adafruit_BME680.h>
15-
static Adafruit_BME680 BME680;
15+
static Adafruit_BME680 BME680(TELEM_WIRE);
1616
#endif
1717

1818
#ifdef ENV_INCLUDE_BMP085
@@ -180,7 +180,7 @@ bool EnvironmentSensorManager::begin() {
180180
#endif
181181

182182
#if ENV_INCLUDE_BME680
183-
if (BME680.begin(TELEM_BME680_ADDRESS, TELEM_WIRE)) {
183+
if (BME680.begin(TELEM_BME680_ADDRESS)) {
184184
MESH_DEBUG_PRINTLN("Found BME680 at address: %02X", TELEM_BME680_ADDRESS);
185185
BME680_initialized = true;
186186
} else {

0 commit comments

Comments
 (0)