Skip to content

Commit 4cfbd3b

Browse files
committed
Switch BMP085 mode to 0 for ULTRALOWPOWER
1 parent ac15131 commit 4cfbd3b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/helpers/sensors/EnvironmentSensorManager.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,9 @@ bool EnvironmentSensorManager::begin() {
312312
#endif
313313

314314
#if ENV_INCLUDE_BMP085
315-
// first arg is MODE
316-
// 0: ULTRALOWPOWER
317-
// 1: STANDARD
318-
// 2: HIGHRES
319-
// 3: ULTRAHIGHRES
320-
if (BMP085.begin(1, TELEM_WIRE)) {
315+
// First argument is MODE (aka oversampling)
316+
// choose ULTRALOWPOWER
317+
if (BMP085.begin(0, TELEM_WIRE)) {
321318
MESH_DEBUG_PRINTLN("Found sensor BMP085");
322319
BMP085_initialized = true;
323320
} else {

0 commit comments

Comments
 (0)