mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Switch BMP085 mode to 0 for ULTRALOWPOWER
This commit is contained in:
parent
ac15131296
commit
4cfbd3bad5
1 changed files with 3 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue