mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 14:55:46 +00:00
Switch BMP085 mode to 0 for ULTRALOWPOWER
This commit is contained in:
@@ -312,12 +312,9 @@ bool EnvironmentSensorManager::begin() {
|
||||
#endif
|
||||
|
||||
#if ENV_INCLUDE_BMP085
|
||||
// first arg is MODE
|
||||
// 0: ULTRALOWPOWER
|
||||
// 1: STANDARD
|
||||
// 2: HIGHRES
|
||||
// 3: ULTRAHIGHRES
|
||||
if (BMP085.begin(1, TELEM_WIRE)) {
|
||||
// First argument is MODE (aka oversampling)
|
||||
// choose ULTRALOWPOWER
|
||||
if (BMP085.begin(0, TELEM_WIRE)) {
|
||||
MESH_DEBUG_PRINTLN("Found sensor BMP085");
|
||||
BMP085_initialized = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user